mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
14 lines
359 B
Python
14 lines
359 B
Python
|
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.
|