class documentation

class twisted.protocols.amp._ParserHelper: (source)

View In Hierarchy

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.
def __init__(self): (source)

Undocumented

boxes = (source)

Undocumented

(type: list)
def getPeer(self): (source)

Undocumented

def getHost(self): (source)

Undocumented

disconnecting = (source)

Undocumented

(type: bool)
def startReceivingBoxes(self, sender): (source)

No initialization is required.

def ampBoxReceived(self, box): (source)

Undocumented

@classmethod
def parse(cls, fileObj): (source)

Parse some amp data stored in a file.

ParametersfileObja file-like object.
Returnsa list of AmpBoxes encoded in the given file.
@classmethod
def parseString(cls, data): (source)

Parse some amp data stored in a string.

Parametersdataa str holding some amp-encoded data.
Returnsa list of AmpBoxes encoded in the given string.
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.