Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e3a3726b
Commit
e3a3726b
authored
May 04, 2009
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#5916, 5917: small socket doc improvements.
parent
f5f045e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Doc/library/socket.rst
Doc/library/socket.rst
+7
-2
No files found.
Doc/library/socket.rst
View file @
e3a3726b
...
...
@@ -405,7 +405,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.
...
...
@@ -419,7 +419,7 @@ The module :mod:`socket` exports the following constants and functions:
If the string 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 stack support.
:func:`
inet_ntop
` should be used instead for IPv4/v6 dual stack support.
.. function:: inet_pton(address_family, ip_string)
...
...
@@ -437,6 +437,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.
.. versionadded:: 2.3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment