Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.


  • 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

Download files

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

Files for cs.socketutils, version 20181228
Filename, size File type Python version Upload date Hashes
Filename, size cs.socketutils-20181228.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page