eof A boolean indicating whether the memory BIO is current at the end-of-file position.
closed True if the file is closed. New
write(bytes) Write the bytes in bytes into memory at the current position of the file pointer; the file position is
socket.accept() Accept a connection. The socket must be bound to an address and listening for connections. The return value
signal.sigtimedwait(sigset, timeout) Like sigwaitinfo(), but takes an additional timeout argument specifying
handle_accepted(sock, addr) Called on listening channels (passive openers) when a connection has been established with a new
ssl.PROTOCOL_TLSv1_2 Selects TLS version 1.2 as the channel encryption protocol. This is the most modern version, and probably
read(n=-1) Read up to n bytes from the memory buffer. If n is not specified or negative, all bytes are returned
SSLSocket.unwrap() Performs the SSL shutdown handshake, which removes the TLS layer from the underlying socket, and returns
socket.getsockopt(level, optname[, buflen]) Return the value of the given socket option (see the Unix man page
Page 5 of 22