socket.gethostname() Return a string containing the hostname of the machine where the Python interpreter is currently executing
socket.getsockname() Return the socket’s own address. This is useful to find out the port number of an IPv4/v6 socket, for instance
socket.getaddrinfo(host, port, family=0, type=0, proto=0, flags=0) Translate the host/port argument into a
socket.getservbyname(servicename[, protocolname]) Translate an Internet service name and protocol name to a port number for
socket.ntohs(x) Convert 16-bit positive integers from network to host byte order. On machines where the host byte order is the
SSLContext.load_cert_chain(certfile, keyfile=None, password=None) Load a private key and the corresponding certificate. The
ssl.get_default_verify_paths() Returns a named tuple with paths to OpenSSL’s default cafile and capath. The paths are the same
ssl.PROTOCOL_SSLv23 Selects the highest protocol version that both the client and server support. Despite the name, this option
socket.sendto(bytes, address) socket.sendto(bytes, flags, address) Send data to the socket. The socket should not
async_chat.discard_buffers() In emergencies this method will discard any data held in the input and/or output buffers and the
Page 21 of 22