concepts/

directory
v0.0.0-...-d76c376 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0

README

Concept Example

This example implements a simple peer-to-peer chat which utilizes the basic concept of UDP hole punching exactly as described in the concept document.

See the visualization here.

UDP hole punching concept

Usage

Client

The well known rendezvous server can be optionally specified with the first command line argument.

client [rendezvous] 

or

go run ./client [rendezvous] 

with rendezvous defined here. It defaults to rendezvous = localhost:5001.

Server

The listening address may be optionally set as first command line argument.

server [laddr] 

or

go run ./server [laddr] 

where laddr := <rendezvous>. It defaults to laddr = :5001.

When the server is started via ./server/docker-compose.yml (or the Dockerfile) and any other laddr than the default is desired, the Dockerfile as well as the docker-compose have to be adjusted accordingly (entry point, port mapping).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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