mitmproxy/libmproxy/protocol2/rawtcp.py

14 lines
359 B
Python
Raw Normal View History

2015-07-24 16:29:13 +00:00
from . import Layer, Connect
from ..protocol.tcp import TCPHandler
class TcpLayer(Layer):
def __call__(self):
yield Connect()
tcp_handler = TCPHandler(self)
tcp_handler.handle_messages()
def establish_server_connection(self):
pass
# FIXME: Remove method, currently just here to mock TCPHandler's call to it.