Documentation ¶
Index ¶
Constants ¶
View Source
const (
MsgIDSize = 2 // uint16
)
Variables ¶
View Source
var ( ErrAlreadyBind = errors.New("already bind user") ErrBackendSDNotFound = errors.New("backend sd not found") ErrBackendServerNotFound = errors.New("backend svc not found") )
View Source
var ( PingACKMsgID = cellnet.MessageMetaByFullName("proto.PingACK").ID VerifyREQMsgID = cellnet.MessageMetaByFullName("proto.VerifyREQ").ID )
Functions ¶
func ProcFrontendPacket ¶
func RecvLTVPacketData ¶
接收Length-Type-Value格式的封包流程
func Start ¶
func Start(param model.FrontendParameter)
Types ¶
type FrontendEventHooker ¶
type FrontendEventHooker struct { }
func (FrontendEventHooker) OnInboundEvent ¶
func (FrontendEventHooker) OnInboundEvent(inputEvent cellnet.Event) (outputEvent cellnet.Event)
网关内部抛出的事件
func (FrontendEventHooker) OnOutboundEvent ¶
func (FrontendEventHooker) OnOutboundEvent(inputEvent cellnet.Event) (outputEvent cellnet.Event)
发送到客户端的消息
Click to show internal directories.
Click to hide internal directories.