MCPcopy Create free account
hub / github.com/DNAProject/DNA / handleStopServerReq

Method handleStopServerReq

p2pserver/actor/server/actor.go:107–113  ·  view source on GitHub ↗

stop handler

(ctx actor.Context, req *StopServerReq)

Source from the content-addressed store, hash-verified

105
106//stop handler
107func (this *P2PActor) handleStopServerReq(ctx actor.Context, req *StopServerReq) {
108 this.server.Stop()
109 if ctx.Sender() != nil {
110 resp := &StopServerRsp{}
111 ctx.Sender().Request(resp, ctx.Self())
112 }
113}
114
115//get port handler
116func (this *P2PActor) handleGetPortReq(ctx actor.Context, req *GetPortReq) {

Callers 1

ReceiveMethod · 0.95

Calls 2

SenderMethod · 0.80
StopMethod · 0.65

Tested by

no test coverage detected