MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / StartReverseForwardClient

Method StartReverseForwardClient

agentprotocol/server.go:663–673  ·  view source on GitHub ↗
(bindHost string, bindPort uint32, singleConnection bool)

Source from the content-addressed store, hash-verified

661}
662
663func (c *ForwardCtx) StartReverseForwardClient(bindHost string, bindPort uint32, singleConnection bool) (chan *Connection, error) {
664 setupPacket := SetupPacket{
665 ConnectionType: CONNECTION_TYPE_PORT_FORWARD,
666 BindHost: bindHost,
667 BindPort: bindPort,
668 Protocol: "tcp",
669 SingleConnection: singleConnection,
670 }
671
672 return c.startReverseForwardingClient(setupPacket)
673}
674
675func (c *ForwardCtx) StartReverseForwardClientUnix(path string, singleConnection bool) (chan *Connection, error) {
676 setupPacket := SetupPacket{

Callers 2

TestConnectionSetupFunction · 0.95

Calls 1

Tested by 1

TestConnectionSetupFunction · 0.76