socket.gethostname()
  • References/Python/Python/Networking

socket.gethostname() Return a string containing the hostname of the machine where the Python interpreter is currently executing

2025-01-10 15:47:30
socket.socket.getsockname()
  • References/Python/Python/Networking

socket.getsockname() Return the socket’s own address. This is useful to find out the port number of an IPv4/v6 socket, for instance

2025-01-10 15:47:30
socket.getaddrinfo()
  • References/Python/Python/Networking

socket.getaddrinfo(host, port, family=0, type=0, proto=0, flags=0) Translate the host/port argument into a

2025-01-10 15:47:30
socket.getservbyname()
  • References/Python/Python/Networking

socket.getservbyname(servicename[, protocolname]) Translate an Internet service name and protocol name to a port number for

2025-01-10 15:47:30
socket.ntohs()
  • References/Python/Python/Networking

socket.ntohs(x) Convert 16-bit positive integers from network to host byte order. On machines where the host byte order is the

2025-01-10 15:47:30
ssl.SSLContext.load_cert_chain()
  • References/Python/Python/Networking

SSLContext.load_cert_chain(certfile, keyfile=None, password=None) Load a private key and the corresponding certificate. The

2025-01-10 15:47:30
ssl.get_default_verify_paths()
  • References/Python/Python/Networking

ssl.get_default_verify_paths() Returns a named tuple with paths to OpenSSL’s default cafile and capath. The paths are the same

2025-01-10 15:47:30
ssl.PROTOCOL_SSLv23
  • References/Python/Python/Networking

ssl.PROTOCOL_SSLv23 Selects the highest protocol version that both the client and server support. Despite the name, this option

2025-01-10 15:47:30
socket.socket.sendto()
  • References/Python/Python/Networking

socket.sendto(bytes, address) socket.sendto(bytes, flags, address) Send data to the socket. The socket should not

2025-01-10 15:47:30
asynchat.async_chat.discard_buffers()
  • References/Python/Python/Networking

async_chat.discard_buffers() In emergencies this method will discard any data held in the input and/or output buffers and the

2025-01-10 15:47:30