42 lines
585 B
Go
42 lines
585 B
Go
package cs
|
|
|
|
import (
|
|
"q5"
|
|
)
|
|
|
|
func ParsePb(msgId int, data []byte) interface{} {
|
|
return nil
|
|
}
|
|
|
|
type MsgHandler interface {
|
|
CMPing(*CMPing)
|
|
CMLogin(*CMLogin)
|
|
CMReconnect(*CMReconnect)
|
|
}
|
|
|
|
type MsgHandlerImpl struct {
|
|
}
|
|
|
|
type NetMsgHandler struct {
|
|
MsgId int
|
|
HandlerId int
|
|
cb func(MsgHandler)
|
|
}
|
|
|
|
func (this *MsgHandlerImpl) CMPing(msg *CMPing) {
|
|
}
|
|
|
|
func (this *MsgHandlerImpl) CMLogin(msg *CMLogin) {
|
|
}
|
|
|
|
func (this *MsgHandlerImpl) CMReconnect(msg *CMReconnect) {
|
|
}
|
|
|
|
func GetMsgHandlerId(msgId int) (int) {
|
|
return 0
|
|
}
|
|
|
|
func DispatchMsg(hdr *q5.MsgHdr, msgHandler MsgHandler) {
|
|
|
|
}
|