get id handler
(ctx actor.Context, req *GetIdReq)
| 158 | |
| 159 | //get id handler |
| 160 | func (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 |
| 171 | func (this *P2PActor) handleGetConnectionStateReq(ctx actor.Context, req *GetConnectionStateReq) { |