Documentation ¶
Overview ¶
通用服务
Index ¶
Constants ¶
View Source
const (
DEFAULT_CH_SIZE = 16 // 默认玩家异步消息队列大小
)
Variables ¶
View Source
var ( ERROR_INCORRECT_FRAME_TYPE = errors.New("incorrect frame") ERROR_SERVICE_NOT_BIND = errors.New("service not bind") )
Functions ¶
func ForEachSend ¶
func ForEachSend(msg network.RawMessage)
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func (*Agent) Send ¶
func (s *Agent) Send(userid int32, msg network.RawMessage, mq chan network.Data_Frame)
FIXME for async ipc
type Service ¶
type Session ¶
type SessionManger ¶
Click to show internal directories.
Click to hide internal directories.