r4831: added udp support to our generic sockets library.
authorAndrew Tridgell <tridge@samba.org>
Wed, 19 Jan 2005 03:20:20 +0000 (03:20 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:08:59 +0000 (13:08 -0500)
commit8783aa8ea57c3a6989e0722d5184e98d543352d4
tree93df839740cf04b88ec6ff9f81fcde5c99e77951
parent6c310003d21fe832da46bbfeb078f716d87be04f
r4831: added udp support to our generic sockets library.

I decided to incorporate the udp support into the socket_ipv4.c
backend (and later in socket_ipv6.c) rather than doing a separate
backend, as so much of the code is shareable. Basically this adds a
socket_sendto() and a socket_recvfrom() call and not much all.

For udp servers, I decided to keep the call as socket_listen(), even
though dgram servers don't actually call listen(). This keeps the API
consistent.

I also added a simple local sockets testsuite in smbtorture,
LOCAL-SOCKET
(This used to be commit 9f12a45a05c5c447fb4ec18c8dd28f70e90e32a5)
source4/lib/socket/socket.c
source4/lib/socket/socket.h
source4/lib/socket/socket_ipv4.c
source4/lib/socket/socket_ipv6.c
source4/lib/socket/socket_unix.c
source4/torture/config.mk
source4/torture/local/socket.c [new file with mode: 0644]
source4/torture/torture.c