Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Log xrlog.Log BenchMgr bench.Mgr TimerMgr timer.TimerMgr TcpService tcp.Server Addr addr.Addr OnEventDefault tcp.OnEventDefaultFunc // contains filtered or unexported fields }
func (*Server) GetEventChan ¶
func (p *Server) GetEventChan() (eventChan chan<- interface{})
func (*Server) Init ¶
func (p *Server) Init(onEventConnServerFunc tcp.OnEventConnServerFunc, onEventDisConnServerFunc tcp.OnEventDisConnServerFunc, onEventPacketServerFunc tcp.OnEventPacketServerFunc, onParseProtoHeadFunc tcp.OnParseProtoHeadFunc, onEventAddrMulticastFunc addr.OnEventAddrMulticastFunc, OnEventDefaultFunc tcp.OnEventDefaultFunc) (err error)
func (*Server) Push2EventChan ¶
func (p *Server) Push2EventChan(v interface{})
Click to show internal directories.
Click to hide internal directories.