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)
def dataReceived(self, data): print "PS->dataReceived(%s)" %repr(data) #print data return ProxyServer.dataReceived(self, data)
def dataReceived(self, data): print "PS->dataReceived(%s)" % repr(data) #print data return ProxyServer.dataReceived(self, data)