class twisted.protocols.amp._ParserHelper: (source)
A box receiver which records all boxes received.
Method | __init__ | Undocumented |
Instance Variable | boxes | Undocumented |
Method | getPeer | Undocumented |
Method | getHost | Undocumented |
Class Variable | disconnecting | 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. |