@@ -1059,7 +1059,7 @@ The :mod:`socket` module also offers various network-related services:
1059
1059
Convert an IPv4 address from dotted-quad string format (for example,
1060
1060
'123.45.67.89') to 32-bit packed binary format, as a bytes object four characters in
1061
1061
length. This is useful when conversing with a program that uses the standard C
1062
- library and needs objects of type :c:type: ` struct in_addr `, which is the C type
1062
+ library and needs objects of type :c:struct: ` in_addr `, which is the C type
1063
1063
for the 32-bit packed binary this function returns.
1064
1064
1065
1065
:func: `inet_aton ` also accepts strings with less than three dots; see the
@@ -1078,7 +1078,7 @@ The :mod:`socket` module also offers various network-related services:
1078
1078
Convert a 32-bit packed IPv4 address (a :term: `bytes-like object ` four
1079
1079
bytes in length) to its standard dotted-quad string representation (for example,
1080
1080
'123.45.67.89'). This is useful when conversing with a program that uses the
1081
- standard C library and needs objects of type :c:type: ` struct in_addr `, which
1081
+ standard C library and needs objects of type :c:struct: ` in_addr `, which
1082
1082
is the C type for the 32-bit packed binary data this function takes as an
1083
1083
argument.
1084
1084
@@ -1095,8 +1095,8 @@ The :mod:`socket` module also offers various network-related services:
1095
1095
1096
1096
Convert an IP address from its family-specific string format to a packed,
1097
1097
binary format. :func: `inet_pton ` is useful when a library or network protocol
1098
- calls for an object of type :c:type: ` struct in_addr ` (similar to
1099
- :func: `inet_aton `) or :c:type: ` struct in6_addr `.
1098
+ calls for an object of type :c:struct: ` in_addr ` (similar to
1099
+ :func: `inet_aton `) or :c:struct: ` in6_addr `.
1100
1100
1101
1101
Supported values for *address_family * are currently :const: `AF_INET ` and
1102
1102
:const: `AF_INET6 `. If the IP address string *ip_string * is invalid,
@@ -1116,8 +1116,8 @@ The :mod:`socket` module also offers various network-related services:
1116
1116
bytes) to its standard, family-specific string representation (for
1117
1117
example, ``'7.10.0.5' `` or ``'5aef:2b::8' ``).
1118
1118
:func: `inet_ntop ` is useful when a library or network protocol returns an
1119
- object of type :c:type: ` struct in_addr ` (similar to :func: `inet_ntoa `) or
1120
- :c:type: ` struct in6_addr `.
1119
+ object of type :c:struct: ` in_addr ` (similar to :func: `inet_ntoa `) or
1120
+ :c:struct: ` in6_addr `.
1121
1121
1122
1122
Supported values for *address_family * are currently :const: `AF_INET ` and
1123
1123
:const: `AF_INET6 `. If the bytes object *packed_ip * is not the correct
0 commit comments