]> git.ozlabs.org Git - ccan/commit
net: add server support.
authorRusty Russell <rusty@rustcorp.com.au>
Sun, 17 Mar 2013 04:48:10 +0000 (15:18 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 17 Mar 2013 05:06:44 +0000 (15:36 +1030)
commit81f2204ceaec3bc99442344c87e2872747c2100a
tree4796bc65b8a591fe789c128d223c33ed7b12673c
parent8216fa0be7d9bf39774a192d52fef955f6bd7cd8
net: add server support.

Creating a server for IPv4 and IPv6 has similar issues to clients,
with some novel twists.  Slightly different arguments need to be given
to getaddrinfo(), but worse, some platforms (Linux without
/proc/sys/net/ipv6/bindv6only set) automatically bind IPv6 sockets to IPv4
ports as well.

Thus we need a function which can bind (and listen) to one or two fds.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/net/_info
ccan/net/net.c
ccan/net/net.h
ccan/net/test/run-bind.c [new file with mode: 0644]