This module provides access to the BSD socket interface. 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.50.200.5' . If the host name is an IP address itself it is returned unchanged. Translate a host name to IP address format, extended interface.