get port handler
(ctx actor.Context, req *GetPortReq)
| 114 | |
| 115 | //get port handler |
| 116 | func (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 |
| 127 | func (this *P2PActor) handleGetVersionReq(ctx actor.Context, req *GetVersionReq) { |