Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libsocket.tex @ 28837:c2a05e0785f1 legacy-trunk
Fix a copy-paste error: the paragraph about inet_ntop's use was copied
literally from inet_pton.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 25 Apr 2003 15:26:58 +0000 |
| parents | 7012ca64bc74 |
| children | cd82253f20b7 |
line wrap: on
line diff
--- a/Doc/lib/libsocket.tex Fri Apr 25 15:17:03 2003 +0000 +++ b/Doc/lib/libsocket.tex Fri Apr 25 15:26:58 2003 +0000 @@ -381,8 +381,8 @@ Supported values for address_family are currently \constant{AF_INET} and \constant{AF_INET6}. -\function{inet_pton()} is useful when a library or network protocol calls for -an object of type \ctype{struct in_addr} (similar to \function{inet_aton()}) +\function{inet_ntop()} is useful when a library or network protocol returns +an object of type \ctype{struct in_addr} (similar to \function{inet_ntoa()}) or \ctype{struct in6_addr}. If the string passed to this function is not the correct length for the
