boing.net — Networking and encoding tools¶The module boing.net provides classes and methods to ease the
usage of sockets and networking encodings, like for example JSON, OSC,
SLIP, etc.
boing.net.Encoder¶Abstract base class for implementing the encoders of all the different encodings.
encode(obj)¶@abc.abstractmethodReturn the result obtained from encoding obj.
reset()¶@abc.abstractmethodReset the encoder.
boing.net.Decoder¶Abstract base class for implementing the decoders of all the different encodings.
The Decoder class implements the composite pattern. Many decoders can be put in sequence into a single composed decoder using the sum operator.
decode(obj)¶@abc.abstractmethodReturn the list of objects obtained from decoding obj.
reset()¶@abc.abstractmethodReset the decoder.