IPv6 socket programming
A programming question about IPv6.
I got a daemon, it wants to listen to a specific TCP port (9006).
So I getaddrinfo a set of addresses. Now I need to make the socket,
bind and listen.
OK, so i got something like:
getaddrinfo
while(res) {
skt = socket(res->ai_family, res->ai_socktype, res->ai_protocol)
bind(skt)
listen(skt)
next res
}
is this correct? Do I need to make several socket calls to listen to
all addresses?
I'm doing this partly ito document it, so it is easier for others.
--
Craig Small VK2XLZ GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/ <csmall@eye-net.com.au>
MIEEE <csmall@ieee.org> Debian developer <csmall@debian.org>
Reply to: