simple-udp/

directory
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2018 License: Apache-2.0

README

Simple UDP Server

A very simple UDP logging server and client, for the purposes of demoing and testing running a UDP based server on Agones.

Server

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

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

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

Client

Client will read in from stdin and send each line to the server.

Address defaults to localhost:7654 but can be changed through the address flag.

Directories

Path Synopsis
Package main implements a client that reads a line from stdin and then sends it as a UDP packet to the -address flag
Package main implements a client that reads a line from stdin and then sends it as a UDP packet to the -address flag
Package main is a very simple echo UDP server
Package main is a very simple echo UDP server

Jump to

Keyboard shortcuts

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