stop handler
(ctx actor.Context, req *StopServerReq)
| 105 | |
| 106 | //stop handler |
| 107 | func (this *P2PActor) handleStopServerReq(ctx actor.Context, req *StopServerReq) { |
| 108 | this.server.Stop() |
| 109 | if ctx.Sender() != nil { |
| 110 | resp := &StopServerRsp{} |
| 111 | ctx.Sender().Request(resp, ctx.Self()) |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | //get port handler |
| 116 | func (this *P2PActor) handleGetPortReq(ctx actor.Context, req *GetPortReq) { |