0 purchases
cs.socketutils 20181228
Utility functions and classes for sockets.
Function bind_next_port(sock, host, base_port)
Bind the socket sock to the first free (host,port); return the port.
Parameters:
sock: open socket.
host: target host address.
base_port: the first port number to try.
Class OpenSocket
A file-like object for stream sockets, which uses os.shutdown on close.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.