socket.inet_ntop(address_family, packed_ip) Convert a packed IP address (a bytes-like object
reason A string mnemonic designating the reason this error occurred, for example CERTIFICATE_VERIFY_FAILED. The
socket.htonl(x) Convert 32-bit positive integers from host to network byte order. On machines where the host byte order is the
socket.ntohl(x) Convert 32-bit positive integers from network to host byte order. On machines where the host byte order is the
SSLContext.verify_mode Whether to try to verify other peers’ certificates and how to behave if verification fails. This attribute
write_eof() Write an EOF marker to the memory BIO. After this method has been called, it is illegal to call write()
socket.sendmsg(buffers[, ancdata[, flags[, address]]]) Send normal and ancillary data to the socket, gathering the non-ancillary
SSLContext.set_ciphers(ciphers) Set the available ciphers for sockets created with this context. It should be a string in the
handle_close() Called when the socket is closed.
ssl.PROTOCOL_SSLv2 Selects SSL version 2 as the channel encryption protocol. This protocol is
Page 9 of 22