aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/protocol2/rawtcp.py
blob: b40c569f4860a2a1e412b4b46936be40e1c74938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from __future__ import (absolute_import, print_function, division, unicode_literals)
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.