'@param factory: factory which created this protocol.
@type factory: L{protocol.Factory}.
@param wrappedProtocol: the underlying protocol.
@type wrappedProtocol: C{protocol.Protocol}.
@param logfile: file opened for writing used to write log messages.
@type logfile: C{file}
@param lengthLimit: maximum size of the datareceived logged.
@type lengthLimit: C{int}
@param number: identifier of the connection.
@type number: C{int}.'

def __init__(self, factory, wrappedProtocol, logfile, lengthLimit=None, number=0):

    ProtocolWrapper.__init__(self, factory, wrappedProtocol)
    self.logfile = logfile
    self.lengthLimit = lengthLimit
    self._number = number
