Skip to content

Commit 85bd75e

Browse files
committed
add the assumption
1 parent 5c769dc commit 85bd75e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

network.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,10 @@
10611061
\item IPv6 sockets may be used for both IPv4 and IPv6 communications. That
10621062
means if you try to bind addresses returned by \funnm{getaddrinfo}, \funnm{bind}
10631063
should 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;

0 commit comments

Comments
 (0)