m_comps

package
v0.0.0-...-4cd9d19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MComp_GateComp

type MComp_GateComp struct {
	cbase.ModuleCompBase

	ComId uint16 //协议分类Id
	IsLog bool   //是否输出消息日志

	MaxGoroutine int //最大并发数据
	// contains filtered or unexported fields
}

模块 网关组件 接待网关 代理 的业务需求

func (*MComp_GateComp) Init

func (this *MComp_GateComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, setting map[string]interface{}) (err error)

func (*MComp_GateComp) ReceiveMsg

func (this *MComp_GateComp) ReceiveMsg(session core.IUserSession, msg proto.IMessage) (code int, err string)

func (*MComp_GateComp) RegisterHandle

func (this *MComp_GateComp) RegisterHandle(mId uint16, msg interface{}, f func(session core.IUserSession, msg interface{}))

func (*MComp_GateComp) Start

func (this *MComp_GateComp) Start() (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL