MCPcopy
hub / github.com/monasticacademy/httptap / TCPRequest

Interface TCPRequest

tcp.go:49–61  ·  view source on GitHub ↗

TCP Request

Source from the content-addressed store, hash-verified

47// TCP Request
48
49type 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
63type tcpRequest struct {
64 fr *tcp.ForwarderRequest

Callers 11

MainFunction · 0.65
proxyHTTPSFunction · 0.65
proxyHTTPSchemeFunction · 0.65
notifyTCPMethod · 0.65
notifyUDPMethod · 0.65
MainFunction · 0.65
ListenTCPMethod · 0.65
HandleTCPMethod · 0.65
MainFunction · 0.65
MainFunction · 0.65
AcceptMethod · 0.65

Implementers 2

tcpStreamtcp.go

Calls

no outgoing calls

Tested by

no test coverage detected