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

Method handleGetConnectionStateReq

p2pserver/actor/server/actor.go:171–179  ·  view source on GitHub ↗

connection state handler

(ctx actor.Context, req *GetConnectionStateReq)

Source from the content-addressed store, hash-verified

169
170//connection state handler
171func (this *P2PActor) handleGetConnectionStateReq(ctx actor.Context, req *GetConnectionStateReq) {
172 state := this.server.GetConnectionState()
173 if ctx.Sender() != nil {
174 resp := &GetConnectionStateRsp{
175 State: state,
176 }
177 ctx.Sender().Request(resp, ctx.Self())
178 }
179}
180
181//timestamp handler
182func (this *P2PActor) handleGetTimeReq(ctx actor.Context, req *GetTimeReq) {

Callers 1

ReceiveMethod · 0.95

Calls 2

GetConnectionStateMethod · 0.80
SenderMethod · 0.80

Tested by

no test coverage detected