Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias Import alias alias alias TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Str Num Assign NameStore Call NameLoad NameLoad Str Num Assign NameStore Call NameLoad NameLoad Str Num Assign NameStore ListLoad Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Str body Assign NameStore Dict Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Assign SubscriptStore NameLoad Index Num Str Expr Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore ListLoad Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad Num NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr BoolOpAnd Call NameLoad NameLoad Str NameLoad Str Str SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd CompareIs Call NameLoad NameLoad Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad kwarg body Expr Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str Delete SubscriptDel NameLoad Index Str orelse Assign NameStore NameLoad For NameStore NameLoad body If CompareNotIn NameLoad TupleLoad Str Str Str body Raise Call NameLoad Str Assign NameStore CompareIn Str NameLoad Assign NameStore BoolOpOr CompareIn Str NameLoad UnaryOpNot NameLoad Assert BoolOpOr NameLoad NameLoad Assign NameStore CompareIn Str NameLoad Assign NameStore Str If NameLoad body AugAssignAdd NameStore Str If NameLoad body AugAssignAdd NameStore Str Assign NameStore Call NameLoad NameLoad NameLoad AugAssignAdd AttributeStore NameLoad attr Num If CompareIs NameLoad NameLoad body Assign NameStore Num If CompareLt NameLoad Num body Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad Num body If UnaryOpNot NameLoad body Raise Call NameLoad Str Return NameLoad If BoolOpAnd NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad orelse If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad orelse Assert NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareGt AttributeLoad NameLoad attr Num body AugAssignSub AttributeStore NameLoad attr Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad If CompareLtE AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Return Call AttributeLoad Call NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list If Call NameLoad AttributeLoad NameLoad attr Str body FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Num Num Num NameLoad decorator_list If Call NameLoad NameLoad Str body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad Num body Expr Str If CompareIs NameLoad NameLoad body TryExcept body Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list Assign NameStore Call NameLoad ListLoad NameLoad NameLoad ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareNotIn NameLoad TupleLoad Str Str Str Str Str Str body Raise Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareNotIn Str NameLoad body AugAssignAdd NameStore Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr CompareIn Str NameLoad Assign AttributeStore NameLoad attr CompareIn Str NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Raise Call NameLoad Str While NameLoad body TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Assign AttributeStore NameLoad attr NameLoad Raise ExceptHandler type NameLoad name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Return NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TryExcept body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareIn SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Return NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse Return Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr UnaryOpNot NameLoad CompareEq NameLoad Str body Assign NameStore Call NameLoad TryExcept body Assign TupleStore NameStore NameStore NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass orelse Expr Call AttributeLoad NameLoad attr Num NameLoad For NameStore NameLoad body If CompareIn Str NameLoad body Break orelse Assign NameStore NameLoad Return NameLoad decorator_list ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore NameLoad Assign NameStore NameLoad For NameStore Call NameLoad NameLoad NameLoad Num NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Raise NameLoad orelse Raise Call NameLoad Str decorator_list
N/A N/A This module provides socket operations and some related functions.
On Unix, it supports IP (Internet Protocol) and Unix domain sockets.
On other systems, it only supports IP. Functions specific for a
socket are available as methods of the socket object.

Functions:

socket() -- create a new socket object
socketpair() -- create a pair of new socket objects [*]
fromfd() -- create a socket object from an open file descriptor [*]
fromshare() -- create a socket object from data received from socket.share() [*]
gethostname() -- return the current hostname
gethostbyname() -- map a hostname to its IP number
gethostbyaddr() -- map an IP number or hostname to DNS info
getservbyname() -- map a service name and a protocol name to a port number
getprotobyname() -- map a protocol name (e.g. 'tcp') to a number
ntohs(), ntohl() -- convert 16, 32 bit int from network to host byte order
htons(), htonl() -- convert 16, 32 bit int from host to network byte order
inet_aton() -- convert IP addr string (123.45.67.89) to 32-bit packed format
inet_ntoa() -- convert 32-bit packed format IP to string (123.45.67.89)
socket.getdefaulttimeout() -- get the default timeout value
socket.setdefaulttimeout() -- set the default timeout value
create_connection() -- connects to an address, with an optional timeout and
                       optional source address.

 [*] not available on all platforms!

Special objects:

SocketType -- type object for socket objects
error -- exception raised for I/O errors
has_ipv6 -- boolean value indicating if IPv6 is supported

Integer constants:

AF_INET, AF_UNIX -- socket domains (first argument to socket() call)
SOCK_STREAM, SOCK_DGRAM, SOCK_RAW -- socket types (second argument)

Many other constants may be defined; these may be used in calls to
the setsockopt() and getsockopt() methods.
 __future__ unicode_literals __future__ print_function __future__ division __future__ absolute_import future.builtins super N/A _socket _socket * N/A os sys io N/A N/A N/A errno N/A N/A N/A ImportError N/A N/A errno None N/A EBADF N/A getattr errno EBADF 9 N/A EAGAIN N/A getattr errno EAGAIN 11 N/A EWOULDBLOCK N/A getattr errno EWOULDBLOCK 11 N/A __all__ N/A getfqdn create_connection N/A N/A N/A __all__ extend N/A N/A os _get_exports_list _socket N/A _realsocket socket N/A N/A N/A N/A N/A N/A sys platform lower startswith win N/A N/A errorTab N/A N/A N/A errorTab N/A 10004 The operation was interrupted. N/A N/A errorTab N/A 10009 A bad file handle was passed. N/A N/A errorTab N/A 10013 Permission denied. N/A N/A errorTab N/A 10014 A fault occurred on the network?? N/A N/A errorTab N/A 10022 An invalid operation was attempted. N/A N/A errorTab N/A 10035 The socket operation would block N/A N/A errorTab N/A 10036 A blocking operation is already in progress. N/A N/A errorTab N/A 10048 The network address is in use. N/A N/A errorTab N/A 10054 The connection has been reset. N/A N/A errorTab N/A 10058 The network has been shut down. N/A N/A errorTab N/A 10060 The operation timed out. N/A N/A errorTab N/A 10061 Connection refused. N/A N/A errorTab N/A 10063 The name is too long. N/A N/A errorTab N/A 10064 The host is down. N/A N/A errorTab N/A 10065 The host is unreachable. N/A N/A N/A __all__ append errorTab socket N/A N/A _socket socket N/A N/A A subclass of _socket.socket adding the makefile() method. N/A __slots__ N/A __weakref__ _io_refs _closed __init__ N/A N/A self family type proto fileno N/A AF_INET SOCK_STREAM 0 None N/A N/A N/A fileno None N/A N/A N/A N/A N/A _socket socket __init__ self family type proto N/A N/A N/A N/A N/A _socket socket __init__ self family type proto fileno N/A N/A self _io_refs 0 N/A N/A self _closed False N/A __enter__ N/A N/A self N/A N/A N/A self N/A __exit__ N/A N/A self N/A args N/A N/A N/A N/A self _closed N/A N/A N/A N/A self close N/A __repr__ N/A N/A self N/A N/A N/A Wrap __repr__() to reveal the real class name. N/A s N/A N/A N/A _socket socket __repr__ self N/A N/A N/A s startswith <socket object N/A N/A s N/A <%s.%s%s%s N/A N/A N/A self __class__ __module__ N/A N/A self __class__ __name__ N/A N/A N/A getattr self _closed False  [closed]  N/A s N/A 7 N/A s N/A __getstate__ N/A N/A self N/A N/A N/A N/A TypeError Cannot serialize socket object N/A dup N/A N/A self N/A N/A N/A dup() -> socket object

        Return a new socket object connected to the same system resource.
         N/A fd N/A dup N/A N/A self fileno N/A sock N/A N/A self __class__ N/A self family N/A self type N/A self proto fileno fd N/A N/A N/A sock settimeout N/A N/A self gettimeout N/A sock N/A accept N/A N/A self N/A N/A N/A accept() -> (socket object, address info)

        Wait for an incoming connection.  Return a new socket
        representing the connection, and the address of the client.
        For IP sockets, the address info is a pair (hostaddr, port).
         N/A N/A fd addr N/A N/A self _accept N/A sock N/A socket N/A self family N/A self type N/A self proto fileno fd N/A N/A N/A N/A getdefaulttimeout None N/A N/A self gettimeout N/A N/A N/A N/A sock setblocking True N/A N/A sock addr N/A makefile N/A N/A self mode buffering N/A r None _3to2kwargs N/A N/A makefile(...) -> an I/O stream connected to the socket

        The arguments are as for io.open() after the filename,
        except the only mode characters supported are 'r', 'w' and 'b'.
        The semantics are similar too.  (XXX refactor to share code?)
         N/A N/A newline _3to2kwargs N/A N/A newline N/A _3to2kwargs N/A newline N/A N/A _3to2kwargs N/A newline N/A N/A newline None N/A N/A errors _3to2kwargs N/A N/A errors N/A _3to2kwargs N/A errors N/A N/A _3to2kwargs N/A errors N/A N/A errors None N/A N/A encoding _3to2kwargs N/A N/A encoding N/A _3to2kwargs N/A encoding N/A N/A _3to2kwargs N/A encoding N/A N/A encoding None N/A c mode N/A N/A N/A c N/A r w b N/A N/A N/A ValueError invalid mode %r (only r, w, b allowed) N/A writing N/A w mode N/A reading N/A N/A r mode N/A writing N/A N/A reading writing N/A binary N/A b mode N/A rawmode N/A reading N/A N/A rawmode r N/A writing N/A N/A rawmode w N/A raw N/A SocketIO self rawmode N/A N/A self _io_refs 1 N/A N/A buffering None N/A N/A buffering -1 N/A N/A buffering 0 N/A N/A buffering N/A io DEFAULT_BUFFER_SIZE N/A N/A buffering 0 N/A N/A N/A binary N/A N/A N/A ValueError unbuffered streams must be binary N/A raw N/A N/A reading writing N/A N/A buffer N/A N/A io BufferedRWPair raw raw buffering N/A N/A reading N/A N/A buffer N/A N/A io BufferedReader raw buffering N/A N/A writing N/A buffer N/A N/A io BufferedWriter raw buffering N/A binary N/A N/A buffer N/A text N/A N/A io TextIOWrapper buffer encoding errors newline N/A N/A text mode mode N/A text N/A _decref_socketios N/A N/A self N/A N/A N/A N/A N/A self _io_refs 0 N/A N/A N/A self _io_refs 1 N/A N/A self _closed N/A N/A N/A N/A self close N/A _real_close N/A N/A self _ss N/A N/A _socket socket N/A N/A N/A N/A _ss close self N/A close N/A N/A self N/A N/A N/A N/A self _closed True N/A N/A N/A self _io_refs 0 N/A N/A N/A N/A self _real_close N/A detach N/A N/A self N/A N/A N/A detach() -> file descriptor

        Close the socket object without closing the underlying file descriptor.
        The object cannot be used after this call, but the file descriptor
        can be reused for other purposes.  The file descriptor is returned.
         N/A N/A self _closed True N/A N/A N/A N/A super detach N/A N/A fromfd N/A N/A fd family type proto N/A 0 N/A N/A  fromfd(fd, family, type[, proto]) -> socket object

    Create a socket object from a duplicate of the given file
    descriptor.  The remaining arguments are the same as for socket().
     N/A nfd N/A dup fd N/A N/A socket family type proto nfd N/A N/A N/A hasattr N/A _socket socket share N/A fromshare N/A N/A info N/A N/A N/A  fromshare(info) -> socket object

        Create a socket object from a the bytes object returned by
        socket.share(pid).
         N/A N/A socket 0 0 0 info N/A N/A N/A hasattr _socket socketpair N/A socketpair N/A N/A family type proto N/A None SOCK_STREAM 0 N/A N/A socketpair([family[, type[, proto]]]) -> (socket object, socket object)

        Create a pair of socket objects from the sockets returned by the platform
        socketpair() function.
        The arguments are the same as for socket() except the default family is
        AF_UNIX if defined on the platform; otherwise, the default is AF_INET.
         N/A N/A family None N/A N/A N/A N/A family AF_UNIX N/A N/A N/A NameError N/A N/A family AF_INET N/A N/A a b N/A N/A _socket socketpair family type proto N/A a N/A socket family type proto N/A N/A a detach N/A b N/A socket family type proto N/A N/A b detach N/A N/A a b N/A N/A _blocking_errnos N/A set N/A EAGAIN EWOULDBLOCK SocketIO N/A N/A io RawIOBase N/A N/A Raw I/O implementation for stream sockets.

    This class supports the makefile() method on sockets.  It provides
    the raw I/O interface on top of a socket object.
     __init__ N/A N/A self sock mode N/A N/A N/A N/A mode N/A r w rw rb wb rwb N/A N/A N/A ValueError N/A invalid mode: %r mode N/A N/A N/A N/A io RawIOBase __init__ self N/A N/A self _sock sock N/A N/A b mode N/A N/A mode b N/A N/A self _mode mode N/A N/A self _reading N/A r mode N/A N/A self _writing N/A w mode N/A N/A self _timeout_occurred False N/A readinto N/A N/A self b N/A N/A N/A Read up to len(b) bytes into the writable buffer *b* and return
        the number of bytes read.  If the socket is non-blocking and no bytes
        are available, None is returned.

        If *b* is non-empty, a 0 return value indicates that the connection
        was shutdown at the other end.
         N/A N/A N/A self _checkClosed N/A N/A N/A self _checkReadable N/A N/A self _timeout_occurred N/A N/A N/A IOError cannot read from timed out object N/A True N/A N/A N/A N/A N/A N/A N/A self _sock recv_into b N/A N/A N/A timeout N/A N/A N/A self _timeout_occurred True N/A N/A N/A error N/A e N/A N/A N/A N/A N/A e args N/A 0 _blocking_errnos N/A N/A None N/A N/A write N/A N/A self b N/A N/A N/A Write the given bytes or bytearray object *b* to the socket
        and return the number of bytes written.  This can be less than
        len(b) if not all data could be written.  If the socket is
        non-blocking and no bytes could be written None is returned.
         N/A N/A N/A self _checkClosed N/A N/A N/A self _checkWritable N/A N/A N/A N/A N/A N/A self _sock send b N/A N/A N/A error N/A e N/A N/A N/A N/A N/A e args N/A 0 _blocking_errnos N/A N/A None N/A N/A readable N/A N/A self N/A N/A N/A True if the SocketIO is open for reading.
         N/A N/A self closed N/A N/A N/A ValueError I/O operation on closed socket. N/A N/A self _reading N/A writable N/A N/A self N/A N/A N/A True if the SocketIO is open for writing.
         N/A N/A self closed N/A N/A N/A ValueError I/O operation on closed socket. N/A N/A self _writing N/A seekable N/A N/A self N/A N/A N/A True if the SocketIO is open for seeking.
         N/A N/A self closed N/A N/A N/A ValueError I/O operation on closed socket. N/A N/A N/A N/A super seekable N/A fileno N/A N/A self N/A N/A N/A Return the file descriptor of the underlying socket.
         N/A N/A N/A self _checkClosed N/A N/A N/A N/A self _sock fileno N/A name N/A N/A self N/A N/A N/A N/A N/A self closed N/A N/A N/A N/A self fileno N/A N/A -1 N/A property mode N/A N/A self N/A N/A N/A N/A self _mode N/A property close N/A N/A self N/A N/A N/A Close the SocketIO object.  This doesn't close the underlying
        socket, except if all references to it have disappeared.
         N/A N/A self closed N/A N/A N/A N/A N/A N/A io RawIOBase close self N/A N/A N/A N/A self _sock _decref_socketios N/A N/A self _sock None N/A N/A getfqdn N/A N/A name N/A N/A N/A Get fully qualified domain name from name.

    An empty argument is interpreted as meaning the local host.

    First the hostname returned by gethostbyaddr() is checked, then
    possibly existing aliases. In case no FQDN is available, hostname
    from gethostname() is returned.
     N/A name N/A N/A name strip N/A N/A N/A name N/A name 0.0.0.0 N/A N/A name N/A gethostname N/A N/A N/A N/A hostname aliases ipaddrs N/A gethostbyaddr name N/A N/A N/A error N/A N/A N/A N/A N/A N/A aliases insert 0 hostname N/A name aliases N/A N/A N/A . name N/A N/A N/A N/A name hostname N/A name N/A socket _GLOBAL_DEFAULT_TIMEOUT create_connection N/A N/A address timeout source_address N/A _GLOBAL_DEFAULT_TIMEOUT None N/A N/A Connect to *address* and return the socket object.

    Convenience function.  Connect to *address* (a 2-tuple ``(host,
    port)``) and return the socket object.  Passing the optional
    *timeout* parameter will set the timeout on the socket instance
    before attempting to connect.  If no *timeout* is supplied, the
    global default timeout setting returned by :func:`getdefaulttimeout`
    is used.  If *source_address* is set it must be a tuple of (host, port)
    for the socket to bind as a source address before making the connection.
    An host of '' or port 0 tells the OS to use the default.
     N/A N/A host port address N/A err None N/A res N/A getaddrinfo host port 0 SOCK_STREAM N/A N/A N/A af socktype proto canonname sa res N/A sock None N/A N/A N/A sock N/A socket af socktype proto N/A N/A timeout _GLOBAL_DEFAULT_TIMEOUT N/A N/A N/A N/A sock settimeout timeout N/A source_address N/A N/A N/A N/A sock bind source_address N/A N/A N/A sock connect sa N/A sock N/A N/A N/A error N/A _ N/A N/A err _ N/A N/A sock None N/A N/A N/A N/A sock close N/A N/A err None N/A N/A err N/A N/A N/A error getaddrinfo returns an empty list N/A