TCPing is a command-line tool for pinging a TCP port on a specified host, implemented in Rust. It provides statistics such as average, maximum, and minimum latency for the pinged host.
- Ping a TCP port on a specified host.
- Support for both positional and named parameters.
- Calculate and display statistics including average, maximum, and minimum latency.
tcping <host> <port> [-n <number_of_pings>] [-t <timeout>] [-i <interval>]<host>: The host to ping.<port>: The port to ping.-n, --num: The number of ping attempts (default is 10).-t, --timeout: Timeout in seconds for each connection attempt (default is 3).-i, --interval: Time interval between pings in milliseconds (default is 500).
tcping google.com 443 -n 5
tcping google.com 443 -n 20 -t 5 -i 1000- Clone the repository:
git clone https://github.com/TimothyYe/tcping.git- Build the project:
cargo build --release- Run the binary:
./target/release/tcping google.com 443 -n 10 -t 3 -i 500Download the binary from the Releases page.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.