1 | <?php |
||
13 | class ProxyConnection extends PortConnection implements PortConnectionInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var Header; |
||
18 | */ |
||
19 | protected $header; |
||
20 | |||
21 | 3 | public function __construct($stream, LoopInterface $loop) |
|
25 | |||
26 | 1 | public function handleData($stream) |
|
42 | |||
43 | 1 | public function readProxyHeader($data) |
|
56 | |||
57 | 1 | public function getHeader() |
|
64 | |||
65 | 1 | public function getRemoteAddress() |
|
69 | |||
70 | /** |
||
71 | * @return int The remote port for this connection. |
||
72 | */ |
||
73 | 1 | public function getRemotePort() |
|
77 | |||
78 | /** |
||
79 | * @return int The target port for this connection. |
||
80 | */ |
||
81 | 1 | public function getTargetPort() |
|
85 | |||
86 | /** |
||
87 | * @return string The target address for this connection. |
||
88 | */ |
||
89 | 1 | public function getTargetAddress() |
|
93 | } |