コード例 #1
0
ファイル: client2server.py プロジェクト: adacapo21/TwistedEve
 def connectionMade(self):
     """
         When client first connects, open a connection to the server
     """
     self.packetCount = 0
     if self.factory.attacker:
         self.factory.attacker[0].packetCount = 0
     if self.factory.handshake:
         self.factory.handshake(self)
     ProxyServer.connectionMade(self)          
コード例 #2
0
 def dataReceived(self, data):
     print "PS->dataReceived(%s)" %repr(data)
     #print data
     return ProxyServer.dataReceived(self, data)
コード例 #3
0
 def dataReceived(self, data):
     print "PS->dataReceived(%s)" % repr(data)
     #print data
     return ProxyServer.dataReceived(self, data)