cs.socketutils 20181228

Creator: bradpython12

Last updated:

0 purchases

TODO
Add to Cart

Description:

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.