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."""
~~~~~~~~~~
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)
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8049793886bd41531c63e288675dfc960da6cf44fc7d4a9d4e54c3479ba041a
|
|
| MD5 |
8ca7a8b5c370ce36a91c35d225cede29
|
|
| BLAKE2b-256 |
857cbcc9cfc515e0142e4f6aa0b4e5420dedf3981fd9f33e11a554dba4bdd706
|