Пример #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()
Пример #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()
Пример #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()
Пример #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()