game

package
v0.0.0-...-e5b420f Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UDPServerAPI

type UDPServerAPI struct {
	// contains filtered or unexported fields
}

UDPServerAPI used to communicate with game client

func NewServerConnection

func NewServerConnection(port string, jMazeMap []byte) (s *UDPServerAPI, err error)

NewServerConnection create new tcp server api

func (*UDPServerAPI) Handle

func (s *UDPServerAPI) Handle(gm *manager.GameManager) (isClosed bool, handleErr error)

Handle TCP requests from clients

Jump to

Keyboard shortcuts

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