class documentation

class TrafficLoggingProtocol(ProtocolWrapper): (source)

View In Hierarchy

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.
def __init__(self, factory, wrappedProtocol, logfile, lengthLimit=None, number=0): (source)
Parameters
factory:protocol.Factory.factory which created this protocol.
wrappedProtocol:protocol.Protocol.the underlying protocol.
logfile:filefile opened for writing used to write log messages.
lengthLimit:intmaximum size of the datareceived logged.
number:int.identifier of the connection.
def connectionLost(self, reason): (source)
def connectionMade(self): (source)

Undocumented

def dataReceived(self, data): (source)
def loseConnection(self): (source)
def write(self, data): (source)
def writeSequence(self, iovec): (source)
lengthLimit = (source)

Undocumented

logfile = (source)

Undocumented

def _log(self, line): (source)

Undocumented

def _mungeData(self, data): (source)

Undocumented

_number = (source)

Undocumented