Skip to main content
socketutils
~~~~~~~~~~

socket utils:

- recvall(s, n): recv() n bytes, otherwise raise a ValueError
- recvtillend(s): recv() till s is disconnected
- recvtill(s, marker): receive message ended by marker
- recvsized(s, sizeformat='!I'): receive a sized message
- sendsized(s, data, sizeformat='!I'): send a sized message
- wrap_socket(s): Take an instance s of socket, and return an instance of socketutils.UtilSocket, which wraps utility functions as methods."""

Download files

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

Source Distribution

socketutils-0.4.0.zip (2.0 kB view details)

Uploaded Source

File details

Details for the file socketutils-0.4.0.zip.

File metadata

  • Download URL: socketutils-0.4.0.zip
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for socketutils-0.4.0.zip
Algorithm Hash digest
SHA256 b8049793886bd41531c63e288675dfc960da6cf44fc7d4a9d4e54c3479ba041a
MD5 8ca7a8b5c370ce36a91c35d225cede29
BLAKE2b-256 857cbcc9cfc515e0142e4f6aa0b4e5420dedf3981fd9f33e11a554dba4bdd706

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.0 This release

1 file

0.3.0

1 file

0.2.0

1 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