MCPcopy
hub / github.com/moby/moby / TCPProxy

Struct TCPProxy

cmd/docker-proxy/tcp_proxy_linux.go:12–16  ·  view source on GitHub ↗

TCPProxy is a proxy for TCP connections. It implements the Proxy interface to handle TCP traffic forwarding between the frontend and backend addresses.

Source from the content-addressed store, hash-verified

10// TCPProxy is a proxy for TCP connections. It implements the Proxy interface to
11// handle TCP traffic forwarding between the frontend and backend addresses.
12type TCPProxy struct {
13 listener *net.TCPListener
14 frontendAddr *net.TCPAddr
15 backendAddr *net.TCPAddr
16}
17
18// NewTCPProxy creates a new TCPProxy.
19func NewTCPProxy(listener *net.TCPListener, backendAddr *net.TCPAddr) (*TCPProxy, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected