Documentation
¶
Index ¶
Constants ¶
View Source
const (
ClientBuffer int = 100000
)
View Source
const (
MaxReadFan int = 3
)
View Source
const (
MaxSendFan int = 3
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) ReadMessage ¶
type Connections ¶
type Epoll ¶
type Epoll struct {
Add chan net.Conn
Remove chan *Client
// contains filtered or unexported fields
}
type EpollEvent ¶
type EpollEvent struct {
Events []unix.EpollEvent
Resp chan []*Client
}
type GameServer ¶
type GameServer struct {
// contains filtered or unexported fields
}
func NewGameServer ¶
func (*GameServer) Start ¶
func (gs *GameServer) Start(ctx context.Context)
Start listens for incoming tcp connections
type Pool ¶
type Pool struct {
Connections Connections
Register chan *Client
Remove chan int32
Broadcast chan *valobj.Event
Snapshot chan chan *Snapshot
EpollEvents chan *EpollEvent
// contains filtered or unexported fields
}
type Snapshot ¶
type Snapshot struct {
Connections Connections
Processed chan struct{}
}
Click to show internal directories.
Click to hide internal directories.