stream2msg

Converts tcp socket bit stream to messages.


License
MIT
Install
pip install stream2msg==1.0

Documentation

socket-wrapper

Basic socket wrapper for converting byte stream into messages for python sockets.

Allows sending of metadata in addition to simple string messages. Metadata can be sent as an array, and is returned as the first LEN-1 elements of the received message. The string data is always the LEN-1 index of the message.

See ExampleClient and ExampleServer for basic implementation.