server

package
v0.0.0-...-d098e83 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 12 Imported by: 0

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{})

func (*Server) Stop

func (p *Server) Stop() (err error)

Jump to

Keyboard shortcuts

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