net: use freeaddrinfo() in _info example. In fact, almost everyone will want to do this, so include the required headers in net.h. This makes usage simpler. Reported-by: Jeremy Visser <jeremy@visser.name> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
net: add async operation helpers. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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>
various: add LICENSE comments.
net: new module to help IPv4/IPv6 transition.