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

Method handleGetPortReq

p2pserver/actor/server/actor.go:116–124  ·  view source on GitHub ↗

get port handler

(ctx actor.Context, req *GetPortReq)

Source from the content-addressed store, hash-verified

114
115//get port handler
116func (this *P2PActor) handleGetPortReq(ctx actor.Context, req *GetPortReq) {
117 syncPort := this.server.GetPort()
118 if ctx.Sender() != nil {
119 resp := &GetPortRsp{
120 SyncPort: syncPort,
121 }
122 ctx.Sender().Request(resp, ctx.Self())
123 }
124}
125
126//version handler
127func (this *P2PActor) handleGetVersionReq(ctx actor.Context, req *GetVersionReq) {

Callers 1

ReceiveMethod · 0.95

Calls 2

SenderMethod · 0.80
GetPortMethod · 0.65

Tested by

no test coverage detected