tools/kq_connect_client: Add option to create UDP socket before connect
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 13 Aug 2014 12:58:32 +0000 (20:58 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 13 Aug 2014 13:02:23 +0000 (21:02 +0800)
commit626b6155e27e4e23e44f7d2b4d06c1480379e122
tree21b56cd6002c3437fba5071976bd99bbf7b74fd0
parentef6ef86a658e1d1c943a5b463fff5aa43bf5b374
tools/kq_connect_client: Add option to create UDP socket before connect

And do connect and send 18B datagram before closing the UDP socket.  This
simulates DNS resolving, though this UDP socket does not receive a reply.
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c