TCP Request
| 47 | // TCP Request |
| 48 | |
| 49 | type TCPRequest interface { |
| 50 | // RemoteAddr is the IP address and port of the subprocess that initiated the connection |
| 51 | RemoteAddr() net.Addr |
| 52 | |
| 53 | // LocalAddr is the IP address and port that the subprocess was trying to reach |
| 54 | LocalAddr() net.Addr |
| 55 | |
| 56 | // Accept replies with a SYN+ACK back and returns a connection that can be read |
| 57 | Accept() (net.Conn, error) |
| 58 | |
| 59 | // Reject replies with a RST and the connection is done |
| 60 | Reject() |
| 61 | } |
| 62 | |
| 63 | type tcpRequest struct { |
| 64 | fr *tcp.ForwarderRequest |
no outgoing calls
no test coverage detected