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 details)

Uploaded Source

File details

Details for the file cs.socketutils-20181228.tar.gz.

File metadata

  • Download URL: cs.socketutils-20181228.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.23.0 CPython/3.6.6

File hashes

Hashes for cs.socketutils-20181228.tar.gz
Algorithm Hash digest
SHA256 27bac670840eeb9c0d5d03d877dd4bd60dc6d85fc3d19fe05a356b8e968318ca
MD5 10db5e3e3d3fcce129327b2e7fd6f72d
BLAKE2b-256 8180090908251b4d3f76ac55c7d04739984bda3702c41761caf0ec892f38db77

See more details on using hashes here.

Supported by

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