UDP Ping
1.0.0
一个基于 UDP 的简单 C 客户端/服务器实现,旨在计算延迟和数据包丢失。将在我将来制定的基准测试中使用它。
客户端 ( ping
) 支持以下参数:
--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.
服务器( server
)支持以下参数:
--port -p => The port to bind to.
--verbose -v => Verbose mode.