Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs.socketutils-20181228.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page