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

Method handleGetIDReq

p2pserver/actor/server/actor.go:160–168  ·  view source on GitHub ↗

get id handler

(ctx actor.Context, req *GetIdReq)

Source from the content-addressed store, hash-verified

158
159//get id handler
160func (this *P2PActor) handleGetIDReq(ctx actor.Context, req *GetIdReq) {
161 id := this.server.GetID()
162 if ctx.Sender() != nil {
163 resp := &GetIdRsp{
164 Id: id,
165 }
166 ctx.Sender().Request(resp, ctx.Self())
167 }
168}
169
170//connection state handler
171func (this *P2PActor) handleGetConnectionStateReq(ctx actor.Context, req *GetConnectionStateReq) {

Callers 1

ReceiveMethod · 0.95

Calls 2

SenderMethod · 0.80
GetIDMethod · 0.65

Tested by

no test coverage detected