Public Member Functions | |
def | __enter__ (self) |
def | __exit__ (self, exc_type, exc_val, exc_tb) |
def | __init__ (self, bind_address, gateway_address, gateway_port) |
def | get_byte_count (self) |
def | get_port (self) |
def | reset_byte_count (self) |
def | start (self) |
def | stop (self) |
Private Member Functions | |
def | _handle_reads (self, sockets_to_read) |
def | _handle_writes (self, sockets_to_write) |
def | _run_proxy (self) |
Proxies a TCP connection between one client and one server.
Definition at line 41 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.__init__ | ( | self, | |
bind_address, | |||
gateway_address, | |||
gateway_port | |||
) |
Definition at line 44 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.__enter__ | ( | self | ) |
Definition at line 136 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.__exit__ | ( | self, | |
exc_type, | |||
exc_val, | |||
exc_tb | |||
) |
Definition at line 140 of file _tcp_proxy.py.
|
private |
Definition at line 76 of file _tcp_proxy.py.
|
private |
Definition at line 97 of file _tcp_proxy.py.
|
private |
Definition at line 108 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.get_byte_count | ( | self | ) |
Definition at line 127 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.get_port | ( | self | ) |
Definition at line 73 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.reset_byte_count | ( | self | ) |
Definition at line 131 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.start | ( | self | ) |
Definition at line 66 of file _tcp_proxy.py.
def tests.unit._tcp_proxy.TcpProxy.stop | ( | self | ) |
Definition at line 121 of file _tcp_proxy.py.
|
private |
Definition at line 45 of file _tcp_proxy.py.
|
private |
Definition at line 133 of file _tcp_proxy.py.
|
private |
Definition at line 49 of file _tcp_proxy.py.
|
private |
Definition at line 62 of file _tcp_proxy.py.
|
private |
Definition at line 46 of file _tcp_proxy.py.
|
private |
Definition at line 47 of file _tcp_proxy.py.
|
private |
Definition at line 56 of file _tcp_proxy.py.
|
private |
Definition at line 60 of file _tcp_proxy.py.
|
private |
Definition at line 55 of file _tcp_proxy.py.
|
private |
Definition at line 57 of file _tcp_proxy.py.
|
private |
Definition at line 51 of file _tcp_proxy.py.
|
private |
Definition at line 50 of file _tcp_proxy.py.
|
private |
Definition at line 61 of file _tcp_proxy.py.
|
private |
Definition at line 53 of file _tcp_proxy.py.
|
private |
Definition at line 64 of file _tcp_proxy.py.