MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / init

Method init

agentprotocol/server.go:516–522  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

514}
515
516func (c *ForwardCtx) init() {
517 c.connMap = make(map[uint64]*Connection)
518 c.connectionChannel = make(chan *Connection)
519
520 c.encoder = cbor.NewEncoder(c.toBackend)
521 c.decoder = cbor.NewDecoder(c.fromBackend)
522}
523
524func (c *ForwardCtx) StartClient() (connectionType uint32, setupPacket SetupPacket, connChan chan *Connection, err error) {
525 c.init()

Callers 3

StartClientMethod · 0.95
StartServerForwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected