some utilities for network sockets
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.