class documentation

class TrafficLoggingProtocol(ProtocolWrapper): (source)

View In Hierarchy

Undocumented

Method __init__ No summary
Method connection​Lost Undocumented
Method connection​Made Undocumented
Method data​Received Undocumented
Method lose​Connection Undocumented
Method write Undocumented
Method write​Sequence Undocumented
Instance Variable length​Limit Undocumented
Instance Variable logfile Undocumented
Method _log Undocumented
Method _munge​Data Undocumented
Instance Variable _number Undocumented

Inherited from ProtocolWrapper:

Method __getattr__ Undocumented
Method get​Host Undocumented
Method get​Peer Undocumented
Method log​Prefix Use a customized log prefix mentioning both the wrapped protocol and the current one.
Method make​Connection 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 register​Producer Undocumented
Method stop​Consuming Undocumented
Method unregister​Producer Undocumented
Instance Variable disconnecting Undocumented
Instance Variable factory The WrappingFactory which created this ProtocolWrapper.
Instance Variable wrapped​Protocol 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.
wrapped​Protocol:protocol.Protocol.the underlying protocol.
logfile:filefile opened for writing used to write log messages.
length​Limit: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