Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientHandler ¶
type ClientHandler struct {
// contains filtered or unexported fields
}
ClientHandler is responsible for managing the state and communications for a single client.
func NewClientHandler ¶
func NewClientHandler(conn net.Conn, closeChan chan *ClientHandler, store *store.Store, game *game.Game, sessionKey uint64) *ClientHandler
NewClientHandler returns a new handler for a client connection. When the handler terminates, it will write to the provided closeChan to indicate its work is complete.
func (*ClientHandler) Handle ¶
func (c *ClientHandler) Handle()
Handle processes request for the client connection.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides the network infrastructure for a game and login server.
Click to show internal directories.
Click to hide internal directories.