MCPcopy Index your code
hub / github.com/celzero/firestack / forward

Method forward

intra/common.go:299–338  ·  view source on GitHub ↗

forward copies data between local and remote, and tracks the connection. local, wired to TUN via netstack, is either gonet.TCPConn or gonet.UDPConn. remote, wired to egress, is wrapped in rwext; but the underlying conn may be *net.TCPConn, *net.UDPConn, *demuxconn, or dialers.retrier|splitter etc. I

(local, remote net.Conn, smm *FlowSummary)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 10

queueSummaryMethod · 0.95
IFunction · 0.92
uploadFunction · 0.85
downloadFunction · 0.85
SetTimeoutMethod · 0.80
conn2strFunction · 0.70
TrackMethod · 0.65
UntrackMethod · 0.65
UnwrapMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected