ipserver.socket_server package¶
ipserver.server.socket_server module¶
- class ConnBucket¶
Bases:
object
- get_conn(conn_id)¶
- get_conn_length()¶
- get_conns()¶
- get_max_conn_sock()¶
- get_new_conn_id()¶
- refresh()¶
- refresh_connections(reset_id=False)¶
- reset_id()¶
- verify_connections()¶
- class ConnSock(sock, addr)¶
Bases:
abc.ABC
- add_sequence(cur)¶
- close()¶
- close_socket()¶
- complete_receive(binary)¶
- complete_send(binary)¶
- get_queue()¶
- is_connected(verify_data=False, binary=None)¶
- receive()¶
- send(binary)¶
- send_queue(binary)¶
- set_conn_id(conn_id)¶
- verify_connection(verify_data=False, binary=None)¶
- class SSLConnSock(sock, addr)¶
Bases:
ipserver.server.socket_server.ConnSock
- receive()¶
- send(binary)¶
- class SSLSocketServer(args)¶
Bases:
ipserver.server.socket_server.SocketServer
- accept(add_conn=True)¶
- create(port, bind_ip=None)¶
- create_self_signed_cert()¶
- get_ssl_key_path(filename)¶
- listen(backlog=5)¶
- set_ssl_context(ssl_context)¶
- exception SocketCloseError¶
Bases:
OSError
- class SocketServer¶
Bases:
abc.ABC
- accept(add_conn=True)¶
- close()¶
- create(port, bind_ip=None)¶
- static get_error(e)¶
- initialize(conn_bucket, timeout)¶
- Parameters
conn_bucket (ConnBucket) –
timeout (float) –
- listen(backlog=5)¶
- class TCPConnSock(sock, addr)¶
Bases:
ipserver.server.socket_server.ConnSock
- receive()¶
- send(binary)¶
- class TCPSocketServer¶
Bases:
ipserver.server.socket_server.SocketServer
- accept(add_conn=True)¶
- create(port, bind_ip=None)¶
- listen(backlog=5)¶
- class UDPConnSock(sock, addr)¶
Bases:
ipserver.server.socket_server.ConnSock
- listen(backlog=5)¶
- receive()¶
- send(binary)¶
- class UDPSocketServer¶
Bases:
ipserver.server.socket_server.SocketServer
- accept(add_conn=True)¶
- create(port, bind_ip=None)¶