Skip to content

A simple UDP client and server implemented in Go

Notifications You must be signed in to change notification settings

amrbekhit/go-udp-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go UDP Test

This is a simple UDP client and server implemented in go.

Building

  • Clone the repo into src folder in your GOPATH.
  • CD into the folder and run go build

Server Usage

To start a server run go-udp-test -mode=server -address="addr:port"

You will be taken to a prompt that accepts the following commands:

  • c: List clients and their ids.
  • s: Send a message. The format of the command is s clientid msg
  • q: Quit.

In order to send a message to a client, it must have sent a message first in order for its address to be registered.

Client Usage

To start a client run go-udp-test -mode=client -address="addr:port"

Simply type a message and press enter to send it to the server.

About

A simple UDP client and server implemented in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages