Logo Search packages:      
Sourcecode: tcpwatch-httpproxy version File versions  Download package

def tcpwatch::HTTPProxyToServerConnection::received (   self,
  data 
)

Receives data from the HTTP server to be sent back to the client.

Reimplemented from tcpwatch::ForwardingEndpoint.

Definition at line 1055 of file tcpwatch.py.

01055                             :
        """Receives data from the HTTP server to be sent back to the client."""
        while 1:
            parser = self.response_parser
            if parser.completed:
                self.finished = 1
                self.flush()
                # Note that any extra data returned from the server is
                # ignored. Should it be? :-(
                return
            if not data:
                break
            consumed = parser.received(data)
            fragment = data[:consumed]
            data = data[consumed:]
            ForwardingEndpoint.received(self, fragment)
            self.held.append(fragment)
            self.flush()

    def flush(self):


Generated by  Doxygen 1.6.0   Back to index