mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-24 00:31:33 +00:00
16 lines
452 B
Python
16 lines
452 B
Python
from __future__ import (absolute_import, print_function, division)
|
|
from ..protocol.tcp import TCPHandler
|
|
from .layer import Layer
|
|
from .messages import Connect
|
|
|
|
|
|
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.
|