lib

package
v0.0.0-...-984639f Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLIENT_T_ACK type155pkg = iota     // 0x00
	HOST_T_ACK                         // 0x01
	INIT_ACK     type155pkg = iota + 2 // 0x04
	HOST_T                             // 0x05
	CLIENT_T                           // 0x06
	PUNCH                              // 0x07
	INIT                               // 0x08
	INIT_REQUEST                       // 0x09
	INIT_SUCCESS type155pkg = iota + 3 // 0x0b
	INIT_ERROR                         // 0x0c
	HOST_QUIT    type155pkg = iota + 5 // 0x0f
	CLIENT_QUIT                        // 0x10
	HOST_GAME    type155pkg = iota + 6 // 0x12
	CLIENT_GAME                        // 0x13
)
View Source
const (
	GAME_SELECT         data155pkg = iota + 4 // 0x04
	GAME_INPUT          data155pkg = iota + 5 // 0x06
	GAME_REPLAY_REQUEST data155pkg = iota + 7 // 0x09
	GAME_REPLAY_MATCH                         // 0x0a
	GAME_REPLAY_DATA                          // 0x0b
	GAME_REPLAY_END                           // 0x0c
)
View Source
const (
	MATCH_WAIT match155status = iota
	MATCH_ACCEPT
	// MATCH_START
	MATCH_SPECT_ACK
	MATCH_SPECT_INIT
	MATCH_SPECT_SUCCESS
	MATCH_SPECT_ERROR
)

Variables

This section is empty.

Functions

func Sync

func Sync(master, slave *net.UDPConn)

func ZlibDataDecode

func ZlibDataDecode(l int, d []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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