tubes.framing._SegmentsToFrames(object) class documentationtubes.framing
(View In Hierarchy)
Implements interfaces: tubes.itube.IDivertable
Convert segments into frames by parsing them.
| Method | __init__ | Undocumented |
| Method | received | Some data was received on the wire. |
| Method | reassemble | Take the given sequence of frames, previously emitted by this _SegmentsToFrames,
combine it with any un-parsed data still in the input buffer, and return a
list of segments. |
Some data was received on the wire.
| Parameters | string | a segment, to be parsed into frames. |
| Returns | an iterable of frames. | |
Take the given sequence of frames, previously emitted by this _SegmentsToFrames,
combine it with any un-parsed data still in the input buffer, and return a
list of segments.
| Parameters | datas | list
of bytes
representing frames. |
| Returns | list
of bytes
representing segments. | |