diff options
author | Georg Brandl <georg@python.org> | 2009-05-04 20:50:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-04 20:50:30 (GMT) |
commit | 5f25972a0550e6754407652ab3818f6aaf11a965 (patch) | |
tree | eecf9e9d765dfe0b467bcf3ae00e3287f75f070d /Doc/library/socket.rst | |
parent | 9460648547f10d8b2ffd561975a30d14ba574f43 (diff) | |
download | cpython-5f25972a0550e6754407652ab3818f6aaf11a965.zip cpython-5f25972a0550e6754407652ab3818f6aaf11a965.tar.gz cpython-5f25972a0550e6754407652ab3818f6aaf11a965.tar.bz2 |
Merged revisions 72292 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72292 | georg.brandl | 2009-05-04 22:49:17 +0200 (Mo, 04 Mai 2009) | 1 line
#5916, 5917: small socket doc improvements.
........
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index df80d44..6cb8f17 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -385,7 +385,7 @@ The module :mod:`socket` exports the following constants and functions: :exc:`socket.error` will be raised. Note that exactly what is valid depends on the underlying C implementation of :cfunc:`inet_aton`. - :func:`inet_aton` does not support IPv6, and :func:`getnameinfo` should be used + :func:`inet_aton` does not support IPv6, and :func:`inet_pton` should be used instead for IPv4/v6 dual stack support. @@ -400,7 +400,7 @@ The module :mod:`socket` exports the following constants and functions: If the byte sequence passed to this function is not exactly 4 bytes in length, :exc:`socket.error` will be raised. :func:`inet_ntoa` does not - support IPv6, and :func:`getnameinfo` should be used instead for IPv4/v6 dual + support IPv6, and :func:`inet_ntop` should be used instead for IPv4/v6 dual stack support. @@ -419,6 +419,11 @@ The module :mod:`socket` exports the following constants and functions: Availability: Unix (maybe not all platforms). + .. seealso:: + + :func:`ipaddr.BaseIP.packed` + Platform-independent conversion to a packed, binary format. + .. function:: inet_ntop(address_family, packed_ip) |