Documentation
¶
Index ¶
Constants ¶
View Source
const ( SettingsSize = 24 TCPTimeout = time.Minute * 5 )
View Source
const ( RequestNone = 255 RequestSendSave = 1 RequestReceiveSave = 2 RequestSendSettings = 3 RequestReceiveSettings = 4 RequestRegisterPlayer = 5 RequestGetRegistration = 6 RequestDisconnectNotice = 7 RequestReceiveSaveWithSize = 8 RequestSendCustomStart = 64 // 64-127 are custom data send slots, 128-191 are custom data receive slots CustomDataOffset = 64 )
View Source
const ( KeyInfoClient = 0 KeyInfoServer = 1 PlayerInputRequest = 2 KeyInfoServerGratuitous = 3 CP0Info = 4 )
View Source
const ( StatusDesync = 1 DisconnectTimeoutS = 30 NoRegID = 255 InputDataMax int = 60 * 60 // One minute of input data CS4 = 32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GameServer ¶
type GameServer struct { StartTime time.Time Players map[string]Client PlayersMutex sync.Mutex Logger logr.Logger GameName string Password string ClientSha string MD5 string Emulator string Port int Running bool Features map[string]string NeedsUpdatePlayers bool NumberOfPlayers int BufferTarget byte QuitChannel *chan bool // contains filtered or unexported fields }
func (*GameServer) CloseServers ¶
func (g *GameServer) CloseServers()
func (*GameServer) CreateNetworkServers ¶
func (*GameServer) ManageBuffer ¶
func (g *GameServer) ManageBuffer()
func (*GameServer) ManagePlayers ¶
func (g *GameServer) ManagePlayers()
type Registration ¶
type Registration struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.