game

package
v0.0.0-...-e525491 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

Server is a capable of communicating with clients currently in the game world.

func NewServer

func NewServer(addr string) *Server

NewServer creates a new game server.

func (Server) Address

func (s Server) Address() string

Address retrieves the server's address.

func (*Server) Start

func (s *Server) Start() error

Start the server, allowing it to accept and process incoming client connections.

func (*Server) Stop

func (s *Server) Stop() error

Stop the server, disconnecting connected clients and preventing new connections from being accepted.

Jump to

Keyboard shortcuts

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