@@ -948,7 +948,7 @@ The :mod:`socket` module also offers various network-related services:
948
948
Convert an IPv4 address from dotted-quad string format (for example,
949
949
'123.45.67.89') to 32-bit packed binary format, as a bytes object four characters in
950
950
length. This is useful when conversing with a program that uses the standard C
951
- library and needs objects of type :c:type: ` struct in_addr `, which is the C type
951
+ library and needs objects of type :c:struct: ` in_addr `, which is the C type
952
952
for the 32-bit packed binary this function returns.
953
953
954
954
:func: `inet_aton ` also accepts strings with less than three dots; see the
@@ -967,7 +967,7 @@ The :mod:`socket` module also offers various network-related services:
967
967
Convert a 32-bit packed IPv4 address (a :term: `bytes-like object ` four
968
968
bytes in length) to its standard dotted-quad string representation (for example,
969
969
'123.45.67.89'). This is useful when conversing with a program that uses the
970
- standard C library and needs objects of type :c:type: ` struct in_addr `, which
970
+ standard C library and needs objects of type :c:struct: ` in_addr `, which
971
971
is the C type for the 32-bit packed binary data this function takes as an
972
972
argument.
973
973
@@ -984,8 +984,8 @@ The :mod:`socket` module also offers various network-related services:
984
984
985
985
Convert an IP address from its family-specific string format to a packed,
986
986
binary format. :func: `inet_pton ` is useful when a library or network protocol
987
- calls for an object of type :c:type: ` struct in_addr ` (similar to
988
- :func: `inet_aton `) or :c:type: ` struct in6_addr `.
987
+ calls for an object of type :c:struct: ` in_addr ` (similar to
988
+ :func: `inet_aton `) or :c:struct: ` in6_addr `.
989
989
990
990
Supported values for *address_family * are currently :const: `AF_INET ` and
991
991
:const: `AF_INET6 `. If the IP address string *ip_string * is invalid,
@@ -1005,8 +1005,8 @@ The :mod:`socket` module also offers various network-related services:
1005
1005
bytes) to its standard, family-specific string representation (for
1006
1006
example, ``'7.10.0.5' `` or ``'5aef:2b::8' ``).
1007
1007
:func: `inet_ntop ` is useful when a library or network protocol returns an
1008
- object of type :c:type: ` struct in_addr ` (similar to :func: `inet_ntoa `) or
1009
- :c:type: ` struct in6_addr `.
1008
+ object of type :c:struct: ` in_addr ` (similar to :func: `inet_ntoa `) or
1009
+ :c:struct: ` in6_addr `.
1010
1010
1011
1011
Supported values for *address_family * are currently :const: `AF_INET ` and
1012
1012
:const: `AF_INET6 `. If the bytes object *packed_ip * is not the correct
0 commit comments