python-network
Python module for easy networking
|
Listen on a network port and accept connections. More...
Public Member Functions | |
close (self) | |
Stop the server. | |
Public Attributes | |
str | port = '' |
Port that is listened on. | |
bool | ipv6 = False |
Whether the server listens for IPv6. | |
bool | tls = tls |
False or the hostname for which the TLS keys are used. | |
connections = set() | |
Currently active connections for this server. | |
disconnect_cb = disconnect_cb | |
Disconnect handler, to be used for new sockets. | |
tuple | tls = (ssl.wrap_socket(new_socket[0], ssl_version = ssl.PROTOCOL_TLSv1, server_side = True, certfile = self._tls_cert, keyfile = self._tls_key), new_socket[1]) |
Listen on a network port and accept connections.
Definition at line 464 of file network.py.