Skip to main content

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.

Release files for cs.socketutils 20181228

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs.socketutils 20181228
File Size Uploaded
cs.socketutils-20181228.tar.gz 2.6 kB Details

Release files / cs.socketutils-20181228.tar.gz

Download URL cs.socketutils-20181228.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
27bac670840eeb9c0d5d03d877dd4bd60dc6d85fc3d19fe05a356b8e968318ca
BLAKE2b-256 checksum
How to use checksums
8180090908251b4d3f76ac55c7d04739984bda3702c41761caf0ec892f38db77
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

20181228 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page