class TrafficLoggingProtocol(ProtocolWrapper): (source)
Undocumented
Method | __init__ |
No summary |
Method | connectionLost |
Undocumented |
Method | connectionMade |
Undocumented |
Method | dataReceived |
Undocumented |
Method | loseConnection |
Undocumented |
Method | write |
Undocumented |
Method | writeSequence |
Undocumented |
Instance Variable | lengthLimit |
Undocumented |
Instance Variable | logfile |
Undocumented |
Method | _log |
Undocumented |
Method | _mungeData |
Undocumented |
Instance Variable | _number |
Undocumented |
Inherited from ProtocolWrapper
:
Method | __getattr__ |
Undocumented |
Method | getHost |
Undocumented |
Method | getPeer |
Undocumented |
Method | logPrefix |
Use a customized log prefix mentioning both the wrapped protocol and the current one. |
Method | makeConnection |
When a connection is made, register this wrapper with its factory, save the real transport, and connect the wrapped protocol to this ProtocolWrapper to intercept any transport calls it makes. |
Method | registerProducer |
Undocumented |
Method | stopConsuming |
Undocumented |
Method | unregisterProducer |
Undocumented |
Instance Variable | disconnecting |
Undocumented |
Instance Variable | factory |
The WrappingFactory which created this ProtocolWrapper . |
Instance Variable | wrappedProtocol |
An IProtocol provider to which IProtocol method calls onto this ProtocolWrapper will be proxied. |
Parameters | |
factory:protocol.Factory . | factory which created this protocol. |
wrappedProtocol:protocol.Protocol. | the underlying protocol. |
logfile:file | file opened for writing used to write log messages. |
lengthLimit:int | maximum size of the datareceived logged. |
number:int. | identifier of the connection. |