Exemplo n.º 1
0
 def __init__(self, sock, protocol, sf, sessionno):
     ConnectedSocket.__init__(self, sock, protocol, sf)
     self.logstr = "%s,%s,%s" % (self.protocol.__class__.__name__,
                                 sessionno, self.getPeerHost())
     self.repstr = "<%s #%s on %s>" % (self.protocol.__class__.__name__,
                                       sessionno, self.getPeerPort())
     self.startReading()
Exemplo n.º 2
0
 def __init__(self, sock, protocol, sf, sessionno):
     ConnectedSocket.__init__(self, sock, protocol, sf)
     self.logstr = "%s,%s,%s" % (self.protocol.__class__.__name__, sessionno, self.getPeerHost())
     self.repstr = "<%s #%s on %s>" % (self.protocol.__class__.__name__, sessionno, self.getPeerPort())
     self.startReading()
Exemplo n.º 3
0
 def __init__(self, sock, protocol, sf):
     ConnectedSocket.__init__(self, sock, protocol, sf)
     self.repstr = '<%s to %s at %x>' % (self.__class__, self.sf.addr,
                                         id(self))
     self.logstr = protocol.__class__.__name__ + ",client"
     self.startReading()
Exemplo n.º 4
0
 def __init__(self, sock, protocol, sf):
     ConnectedSocket.__init__(self, sock, protocol, sf)
     self.repstr = '<%s to %s at %x>' % (self.__class__, self.sf.addr, id(self))
     self.logstr = protocol.__class__.__name__+",client"
     self.startReading()