示例#1
0
    def dataReceived(self, data: bytes) -> None:
        """
        Called whenever data is received.

        @type data: L{bytes}
        @param data: Part or all of a SOCKSv5 packet.
        """
        if DEBUG:
            print("RECEIVED:", repr(data))
        if self.otherConn is not None:
            # We're in proxying mode now:
            self.otherConn.write(data)
            return
        StatefulProtocol.dataReceived(self, data)
示例#2
0
 def dataReceived(self, data):
     #self.log.debug("Processing %r", data)
     StatefulProtocol.dataReceived(self, data)
示例#3
0
文件: web.py 项目: eswald/parlance
 def dataReceived(self, data):
     print "Processing", repr(data)
     StatefulProtocol.dataReceived(self, data)