closed True if the file is closed. New
socket.recv(bufsize[, flags]) Receive data from the socket. The return value is a bytes object representing the data received
SSLContext.set_servername_callback(server_name_callback) Register a callback function that will be called after the TLS Client
socket.inet_ntoa(packed_ip) Convert a 32-bit packed IPv4 address (a bytes-like object
exception ssl.SSLError Raised to signal an error from the underlying SSL implementation (currently provided by the OpenSSL library)
socket.setdefaulttimeout(timeout) Set the default timeout in seconds (float) for new socket objects. When the socket module
socket.accept() Accept a connection. The socket must be bound to an address and listening for connections. The return value
pending Return the number of bytes currently in the memory buffer.
signal.sigpending() Examine the set of signals that are pending for delivery to the calling thread (i.e., the signals which
socket.fromshare(data) Instantiate a socket from data obtained from the socket.share() method. The socket is assumed
Page 7 of 22