Documentation
¶
Overview ¶
Package agentproxy provides self-contained TCP/TLS stream-to-local-port proxying. It is a leaf package so that both tunnel_server (the tunnel client) and agent_client can depend on it without forming an import cycle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProxyTcp ¶
ProxyTcp dials 127.0.0.1:port and copies data bidirectionally to/from stream. onActivity, when non-nil, is called (from either copy direction) each time bytes flow and periodically while the stream stays open, so callers can treat an open session — not just a chatty one — as activity.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.