diff options
author | Éric Araujo <merwok@netwok.org> | 2011-11-29 16:14:27 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2011-11-29 16:14:27 (GMT) |
commit | c8e032006a608f14f9463f06f4d466fd367b37f3 (patch) | |
tree | feb41266b17d36bf1f47c438db5cac11eb696d16 /Doc/library/socket.rst | |
parent | aa35b0032235b6b935da0f08f79bba7296ced5fc (diff) | |
parent | a74f8ef419d2c7c5f398a80165f8d8fd5e4d7b8e (diff) | |
download | cpython-c8e032006a608f14f9463f06f4d466fd367b37f3.zip cpython-c8e032006a608f14f9463f06f4d466fd367b37f3.tar.gz cpython-c8e032006a608f14f9463f06f4d466fd367b37f3.tar.bz2 |
Merge 3.2
Diffstat (limited to 'Doc/library/socket.rst')
-rw-r--r-- | Doc/library/socket.rst | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Doc/library/socket.rst b/Doc/library/socket.rst index 17a99e2..f507958 100644 --- a/Doc/library/socket.rst +++ b/Doc/library/socket.rst @@ -64,20 +64,20 @@ Socket addresses are represented as follows: tuple, and the fields depend on the address type. The general tuple form is ``(addr_type, v1, v2, v3 [, scope])``, where: - - *addr_type* is one of TIPC_ADDR_NAMESEQ, TIPC_ADDR_NAME, or - TIPC_ADDR_ID. - - *scope* is one of TIPC_ZONE_SCOPE, TIPC_CLUSTER_SCOPE, and - TIPC_NODE_SCOPE. - - If *addr_type* is TIPC_ADDR_NAME, then *v1* is the server type, *v2* is + - *addr_type* is one of :const:`TIPC_ADDR_NAMESEQ`, :const:`TIPC_ADDR_NAME`, + or :const:`TIPC_ADDR_ID`. + - *scope* is one of :const:`TIPC_ZONE_SCOPE`, :const:`TIPC_CLUSTER_SCOPE`, and + :const:`TIPC_NODE_SCOPE`. + - If *addr_type* is :const:`TIPC_ADDR_NAME`, then *v1* is the server type, *v2* is the port identifier, and *v3* should be 0. - If *addr_type* is TIPC_ADDR_NAMESEQ, then *v1* is the server type, *v2* + If *addr_type* is :const:`TIPC_ADDR_NAMESEQ`, then *v1* is the server type, *v2* is the lower port number, and *v3* is the upper port number. - If *addr_type* is TIPC_ADDR_ID, then *v1* is the node, *v2* is the + If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the reference, and *v3* should be set to 0. - If *addr_type* is TIPC_ADDR_ID, then *v1* is the node, *v2* is the + If *addr_type* is :const:`TIPC_ADDR_ID`, then *v1* is the node, *v2* is the reference, and *v3* should be set to 0. - A tuple ``(interface, )`` is used for the :const:`AF_CAN` address family, |