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. Return a fully qualified domain name for name . If name is omitted or empty, it is interpreted as the local host. The first name which includes a period is selected. In case no fully qualified domain name is available, the hostname is returned.