Skip to content

vvelikodny/go-udp-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Streamer is a server accepting a stream of UDP packets on one port (incoming port) and allowing multiple clients to connect on a different port (outgoing port) and receive that stream.

Incoming stream

The server listens for an incoming stream on a port defined by a command line argument incoming-port. Any packet received on this port is immediately sent to the all connected client.

Outgoing stream

The server listens for client connections on a port defined by a command line argument outgoing-port. Clients communicate with the server using the protocol defined below:

Protocol

CONNECT id - connect to server and start receiving the stream

DISCONNECT id - disconnect from server

ALIVE id - notify server that connection is alive. Failing to send this for 30 seconds will cause the server to disconnect that client. Usually a client will send this every 10 seconds.

(id is a an arbitrary identifier per connection)

About

Simple Golang UDP relay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages