File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ The module :mod:`socket` exports the following constants and functions:
385385 :exc: `socket.error ` will be raised. Note that exactly what is valid depends on
386386 the underlying C implementation of :cfunc: `inet_aton `.
387387
388- :func: `inet_aton ` does not support IPv6, and :func: `getnameinfo ` should be used
388+ :func: `inet_aton ` does not support IPv6, and :func: `inet_pton ` should be used
389389 instead for IPv4/v6 dual stack support.
390390
391391
@@ -400,7 +400,7 @@ The module :mod:`socket` exports the following constants and functions:
400400
401401 If the byte sequence passed to this function is not exactly 4 bytes in
402402 length, :exc: `socket.error ` will be raised. :func: `inet_ntoa ` does not
403- support IPv6, and :func: `getnameinfo ` should be used instead for IPv4/v6 dual
403+ support IPv6, and :func: `inet_ntop ` should be used instead for IPv4/v6 dual
404404 stack support.
405405
406406
@@ -419,6 +419,11 @@ The module :mod:`socket` exports the following constants and functions:
419419
420420 Availability: Unix (maybe not all platforms).
421421
422+ .. seealso ::
423+
424+ :func: `ipaddr.BaseIP.packed `
425+ Platform-independent conversion to a packed, binary format.
426+
422427
423428.. function :: inet_ntop(address_family, packed_ip)
424429
You can’t perform that action at this time.
0 commit comments