MCPcopy
hub / github.com/ContainerSSH/ContainerSSH / NoMoreConnections

Method NoMoreConnections

agentprotocol/server.go:686–694  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

684}
685
686func (c *ForwardCtx) NoMoreConnections() error {
687 c.stopped = true
688 close(c.connectionChannel)
689 return c.writePacket(
690 &Packet{
691 Type: PACKET_NO_MORE_CONNECTIONS,
692 },
693 )
694}
695
696func (c *ForwardCtx) WaitFinish() {
697 c.waitGroup.Wait()

Callers 4

KillMethod · 0.95
CancelTCPForwardingMethod · 0.80
OnShutdownMethod · 0.80

Calls 1

writePacketMethod · 0.95

Tested by

no test coverage detected