twisted.protocols.amp._ParserHelper class documentationtwisted.protocols.amp
View Source
(View In Hierarchy)
A box receiver which records all boxes received.
| Method | __init__ | Undocumented |
| Method | getPeer | Undocumented |
| Method | getHost | Undocumented |
| Method | startReceivingBoxes | No initialization is required. |
| Method | ampBoxReceived | Undocumented |
| Class Method | parse | Parse some amp data stored in a file. |
| Class Method | parseString | Parse some amp data stored in a string. |
Parse some amp data stored in a file.
| Parameters | fileObj | a file-like object. |
| Returns | a list of AmpBoxes encoded in the given file. | |
Parse some amp data stored in a string.
| Parameters | data | a str holding some amp-encoded data. |
| Returns | a list of AmpBoxes encoded in the given string. | |