MCPcopy Create free account
hub / github.com/celzero/firestack / InboundTCP

Function InboundTCP

intra/netstack/tcp.go:69–91  ·  view source on GitHub ↗

s is the netstack to use for dialing (reads/writes). in is the incoming connection to netstack, s. to (src) is remote. from (dst) is local (to netstack, s). h is the handler that handles connection in into netstack, s, by dialing to from (dst) from to (src).

(who string, s *stack.Stack, in net.Conn, to, from netip.AddrPort, h GTCPConnHandler)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ProxyMethod · 0.85

Calls 6

makeGTCPConnFunction · 0.85
tryConnectMethod · 0.80
logeifFunction · 0.70
ErrorMethod · 0.65
ReverseProxyMethod · 0.65
LoadMethod · 0.45

Tested by

no test coverage detected