A simple C client/server implementation over UDP aimed to calculate latency and packet loss. Will be using this with future benchmarks I make.
The client (ping
) supports the following arguments:
--dest -d => The destination host/IP to send to.
--port -p => The destination port.
--timeout -t => How much time to wait after the packet to be sent out before considering it a timeout if it doesn't make it back (in microseconds).
--interval -i => After packet receive, how long to wait in microseconds.
--verbose -v => Verbose mode.
The server (server
) supports the following arguments:
--port -p => The port to bind to.
--verbose -v => Verbose mode.