SSLSocket.context The SSLContext object this SSL socket is tied to. If the SSL socket was created using the top-level
SSLSocket.server_hostname Hostname of the server:
read_byte() Returns a byte at the current file position as an integer, and advances the file position by 1.
socket.shutdown(how) Shut down one or both halves of the connection. If how is SHUT_RD, further receives
exception socket.error A deprecated alias of
socket.proto The socket protocol.
exception socket.gaierror A subclass of
readline() Returns a single line, starting at the current file position and up to the next newline.
read(n=-1) Read up to n bytes from the memory buffer. If n is not specified or negative, all bytes are returned
socket.fromfd(fd, family, type, proto=0) Duplicate the file descriptor fd (an integer as returned by a file object’s
Page 4 of 22