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.