File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 10611061\item IPv6 sockets may be used for both IPv4 and IPv6 communications. That
10621062means if you try to bind addresses returned by \funnm {getaddrinfo}, \funnm {bind}
10631063should return \texttt {EADDRINUSE } after its first call if you use both IPv4 and
1064- IPv6 addresses. Binding an IPv6 address should be sufficient to accept
1065- connections over IPv4 as well. Details are in RFC~3493. If you want to
1066- restrict a socket to IPv6 only, use the following code on a socket from the
1067- \texttt {AF\_ INET6 } family:
1064+ IPv6 addresses, assuming the IPv6 address is returned first.
1065+ Binding an IPv6 address should be sufficient to accept connections over IPv4
1066+ as well. Details are in RFC~3493. If you want to restrict a socket to IPv6
1067+ only, use the following code on a socket from the \texttt {AF\_ INET6 } family:
10681068
10691069\begin {verbatim }
10701070 int on = 1;
You can’t perform that action at this time.
0 commit comments