socket.settimeout(value) Set a timeout on blocking socket operations. The value argument can be a nonnegative floating
socket.shutdown(how) Shut down one or both halves of the connection. If how is SHUT_RD, further receives
SSLContext.wrap_socket(sock, server_side=False, do_handshake_on_connect=True, suppress_ragged_eofs=True, server_hostname=None) Wrap
ssl.PROTOCOL_TLSv1_1 Selects TLS version 1.1 as the channel encryption protocol. Available only with openssl version 1.0.1+
socket.set_inheritable(inheritable) Set the
recv(buffer_size) Read at most buffer_size bytes from the socket’s remote end-point. An empty bytes object implies
exception socket.timeout A subclass of
exception ssl.SSLEOFError A subclass of SSLError raised when the SSL connection has been terminated abruptly. Generally
read_byte() Returns a byte at the current file position as an integer, and advances the file position by 1.
socket.connect(address) Connect to a remote socket at address. (The format of address depends on the address
Page 3 of 22