A SIP messages parser.
Expects dataReceived, dataDone repeatedly, in that order. Shouldn't be
connected to actual transport.
Method Summary |
|
__init__(self,
messageReceivedCallback)
|
|
clearLineBuffer (self)
Clear buffered data. (inherited from LineReceiver )
|
|
connectionFailed (self)
(Deprecated) (inherited from Protocol )
|
|
connectionLost (self,
reason)
Called when the connection is shut down. (inherited from Protocol )
|
|
dataDone(self)
|
|
dataReceived (self,
data)
Protocol.dataReceived. |
|
handleFirstLine (self,
line)
Expected to create self.message. |
|
invalidMessage(self)
|
|
lineLengthExceeded(self)
|
|
lineReceived (self,
line)
Override this for when each line is received. |
|
messageDone(self,
remainingData)
|
|
rawDataReceived (self,
data)
Override this for when raw data is received. |
|
reset(self,
remainingData)
|
|
sendLine (self,
line)
Sends a line to the other end of the connection. (inherited from LineReceiver )
|
|
setLineMode (self,
extra)
Sets the line-mode of this receiver. (inherited from LineReceiver )
|
|
setRawMode (self)
Sets the raw mode of this receiver. (inherited from LineReceiver )
|