PyDocs

Nav

Networking and Interprocess Communication

inet_pton

socket

functionUnixWindows
  • inet_pton(address_family, ip_string)
inet_pton(af, ip) -> packed IP address string

Convert an IP address from string format to a packed string suitable
for use with low-level network functions.
Changed in 3.4
  • 3.4: Windows support added
0 Examples
No examples for socket/inet_pton.
See Also
No see-alsos for socket/inet_pton
0 Notes
No notes for inet_pton