socket.recv(bufsize[, flags]) Receive data from the socket. The return value is a bytes object representing the data received
socket.accept() Accept a connection. The socket must be bound to an address and listening for connections. The return value
socket.proto The socket protocol.
ssl.RAND_pseudo_bytes(num) Return (bytes, is_cryptographic): bytes are num pseudo-random bytes, is_cryptographic is
socket.getsockopt(level, optname[, buflen]) Return the value of the given socket option (see the Unix man page
pending Return the number of bytes currently in the memory buffer.
SSLSocket.pending() Returns the number of already decrypted bytes available for read, pending on the connection.
class ssl.MemoryBIO A memory buffer that can be used to pass data between Python and an SSL protocol instance.
write(buf) Write the bytes from buf to the memory BIO. The buf argument must be an object supporting the buffer
socket.getnameinfo(sockaddr, flags) Translate a socket address sockaddr into a 2-tuple (host, port). Depending
Page 7 of 22