s3: Add nb_trans_send/recv
commit77a9b0e265ae6e65bd0a0b73f65b3a8953b3f59d
authorVolker Lendecke <vl@samba.org>
Tue, 4 Jan 2011 17:22:38 +0000 (4 18:22 +0100)
committerVolker Lendecke <vl@samba.org>
Fri, 7 Jan 2011 12:28:04 +0000 (7 13:28 +0100)
treee7468c30c5d997f026a0601ffb25056f6f4797ba
parentcbd5e4e16b6499a945bd5969bdd2da87bdf21255
s3: Add nb_trans_send/recv

This does an async port 137 transaction: It connects to /tmp/.nmbd/unexpected,
sends out the query and then waits for a reply on both the socket as well as
data from /tmp/.nmbd/unexpected. Every packet is passed through a validator. If
that returns true, the packet received is finally accepted.
source3/libsmb/namequery.c