MCPcopy Index your code
hub / github.com/Cyinx/einx / RpcCall

Method RpcCall

module/module.go:117–124  ·  view source on GitHub ↗
(name string, args ...interface{})

Source from the content-addressed store, hash-verified

115}
116
117func (this *module) RpcCall(name string, args ...interface{}) {
118 rpc_msg := this.rpc_msg_pool.Get().(*RpcEventMsg)
119 rpc_msg.MsgType = event.EVENT_MODULE_RPC
120 rpc_msg.Sender = this
121 rpc_msg.Data = args
122 rpc_msg.RpcName = name
123 this.ev_queue.Push(rpc_msg)
124}
125
126func (this *module) RouterMsg(agent Agent, msg_id ProtoTypeID, msg interface{}) {
127 this.PostData(event.EVENT_TCP_READ_MSG, msg_id, agent, msg)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
PushMethod · 0.45

Tested by

no test coverage detected