Trees | Indices | Help |
---|
|
twisted.internet.protocol.BaseProtocol --+ | twisted.internet.protocol.Protocol --+ | common.log.Loggable --+ | PorterProtocol
The base porter is capable of accepting HTTP-like protocols (including RTSP) - it reads the first line of a request, and makes the decision solely on that.
We can't guarantee that we read precisely a line, so the buffer we accumulate will actually be larger than what we actually parse.
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from |
|
|||
MAX_SIZE = 4096 the maximum number of bytes allowed for the first line |
|||
delimiters =
a list of valid line delimiters I check for |
|||
Inherited from Inherited from Inherited from |
|
Called whenever data is received. Use this method to translate to a higher-level message. Usually, some callback will be made upon the receipt of each complete protocol message.
|
Parse the initial line of the response. Return a string usable for uniquely identifying the stream being requested, or None if the request is unreadable. Subclasses should override this. |
Write a response indicating that the requested resource was not found in this protocol. Subclasses should override this to use the correct protocol. |
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Fri Apr 11 07:40:26 2008 | http://epydoc.sourceforge.net |