ssl.RAND_bytes(num) Return num cryptographically strong pseudo-random bytes. Raises an SSLError if the
SSLContext.protocol The protocol version chosen when constructing the context. This attribute is read-only.
socket.settimeout(value) Set a timeout on blocking socket operations. The value argument can be a nonnegative floating
socket.fileno() Return the socket’s file descriptor (a small integer), or -1 on failure. This is useful with
read_byte() Returns a byte at the current file position as an integer, and advances the file position by 1.
class asyncore.file_dispatcher A file_dispatcher takes a file descriptor or file object
exception socket.timeout A subclass of
async_chat.collect_incoming_data(data) Called with data holding an arbitrary amount of received data. The default method
ssl.PROTOCOL_TLSv1_1 Selects TLS version 1.1 as the channel encryption protocol. Available only with openssl version 1.0.1+
handle_connect() Called when the active opener’s socket actually makes a connection. Might send a “welcome” banner, or initiate
Page 2 of 22