MCPcopy Index your code
hub / github.com/ContainerSSH/ContainerSSH / NewConnectionTCP

Method NewConnectionTCP

agentprotocol/server.go:422–437  ·  view source on GitHub ↗
(
	connectedAddress string,
	connectedPort uint32,
	origAddress string,
	origPort uint32,
	closeFunc func() error,
)

Source from the content-addressed store, hash-verified

420}
421
422func (c *ForwardCtx) NewConnectionTCP(
423 connectedAddress string,
424 connectedPort uint32,
425 origAddress string,
426 origPort uint32,
427 closeFunc func() error,
428) (io.ReadWriteCloser, error) {
429 return c.newConnection(
430 PROTOCOL_TCP,
431 connectedAddress,
432 connectedPort,
433 origAddress,
434 origPort,
435 closeFunc,
436 )
437}
438
439func (c *ForwardCtx) NewConnectionUnix(
440 path string,

Callers 2

TestConnectionSetupFunction · 0.95
NewForwardTCPMethod · 0.80

Calls 1

newConnectionMethod · 0.95

Tested by 1

TestConnectionSetupFunction · 0.76