socket.getservbyname(servicename[, protocolname]) Translate an Internet service name and protocol name to a port number for
socket.inet_pton(address_family, ip_string) Convert an IP address from its family-specific string format to a packed, binary
class ssl.SSLSocket(socket.socket) SSL sockets provide the following methods of
SSLContext.options An integer representing the set of SSL options enabled on this context. The default value is OP_ALL
socket.if_nametoindex(if_name) Return a network interface index number corresponding to an interface name.
flush([offset[, size]]) Flushes changes made to the in-memory copy of a file back to disk. Without use of this call there is
socket.getpeername() Return the remote address to which the socket is connected. This is useful to find out the port number
socket.sendto(bytes, address) socket.sendto(bytes, flags, address) Send data to the socket. The socket should not
socket.getfqdn([name]) Return a fully qualified domain name for name. If name is omitted or empty, it is interpreted
signal.sigwaitinfo(sigset) Suspend execution of the calling thread until the delivery of one of the signals specified in the
Page 19 of 22