simple-game-server

command
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

README

Simple Game Server

A very simple logging server, for the purposes of demoing and testing running UDP and/or TCP based server on Agones.

Server

Starts a server on port 7654 by default. Can be overwritten by PORT env var or port flag.

By default listens on UDP. Set UDP=FALSE env var or -udp=false flag to turn UDP off.

To enable TCP, set TCP=TRUE env var or -tcp flag. Must have at least TCP or UDP enabled.

When it receives a text packet, it will send back "ACK:" for UDP as an echo or "ACK TCP:" for TCP.

If it receives the text "EXIT", then it will sys.Exit(0)

To learn how to deploy your edited version of go server to gcp, please check out this link: Edit Your First Game Server (Go), or also look at the Makefile.

Documentation

Overview

Package main is a very simple server with UDP (default), TCP, or both

Jump to

Keyboard shortcuts

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