mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-21 09:07:30 +08:00
新增对Rpc连接事件的监听
This commit is contained in:
@@ -55,6 +55,12 @@ type RpcHandler struct {
|
||||
callResponseCallBack chan *Call //异步返回的回调
|
||||
}
|
||||
|
||||
type TriggerRpcEvent func(bConnect bool,nodeId int)
|
||||
type IRpcListener interface {
|
||||
OnRpcConnected(nodeId int)
|
||||
OnRpcDisconnect(nodeId int)
|
||||
}
|
||||
|
||||
type IRpcHandler interface {
|
||||
GetName() string
|
||||
InitRpcHandler(rpcHandler IRpcHandler,getClientFun FuncRpcClient,getServerFun FuncRpcServer)
|
||||
|
||||
Reference in New Issue
Block a user