This module provides access to the BSD socket interface. It is available on Unix systems that support this interface. The Unix manual pages for the various socket-related system calls are also a valuable source of information on the details of socket semantics. Other address families are currently not supported. The address format required by a particular socket object is automatically selected based on the address family specified when the socket object was created.
All errors raise exceptions.
See the module errno , which contains names for the error codes defined by the underlying operating system. Translate a host name to IP address format. The IP address is returned as a string, e.g., '100. If the host name is an IP address itself it is returned unchanged. Translate a host name to IP address format, extended interface.