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

socket utils

Project description


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."""

Project details

Download files

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

Files for socketutils, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page