nix develop
cd server/
go build/
./ha-tcp-udp
- -log_level=2 "Enable debug logs"
- -print_logs=true "Print logs on console"
- -tcp_port=12222 "Change default TCP port"
- -tcp_connections_limit=200 "Change number of TCP connections that may be open at once"
- -udp_port=12222 "Change default UDP port"
- -udp_connections_limit=200 "Change number of UDP connections that may be open at once"
- --stable 5 - number of stable connections (that continously receive and does not drop)
- --port 13000 - which port to connect
- --reconnecting 10 - number of connections that establish session after randomly selected number of packets
- --dropping 15 - number of connections that are dropped and established again with a new session
Every package has container image that may be built and used separately.
cd server/
podman build -f Dockerfile --tag ha-tcp-udp
cd client_tcp/
podman build -f Dockerfile --tag client-tcp
cd client_udp/
podman build -f Dockerfile --tag client-udp