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

Method RouterMsg

module/module.go:126–128  ·  view source on GitHub ↗
(agent Agent, msg_id ProtoTypeID, msg interface{})

Source from the content-addressed store, hash-verified

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)
128}
129
130func (this *module) RegisterHandler(type_id ProtoTypeID, handler MsgHandler) {
131 _, ok := this.msg_handler_map[type_id]

Callers

nothing calls this directly

Calls 1

PostDataMethod · 0.95

Tested by

no test coverage detected