Crates.io | tcping |
lib.rs | tcping |
version | 1.2.4 |
source | src |
created_at | 2024-01-14 04:43:33.495953 |
updated_at | 2024-11-27 15:27:03.072738 |
description | 🛠️ tcping-rs: Rust (rs) TCP Ping (tcping) Utility for Port Reachability. |
homepage | https://github.com/lvillis/tcping-rs |
repository | https://github.com/lvillis/tcping-rs |
max_upload_size | |
id | 1099188 |
size | 31,346 |
tcping-rs
🛠️ tcping-rs: Rust (rs) TCP Ping (tcping) Utility for Port Reachability.
$ tcping github.com:443
Resolved address in 0.9340 ms
Probing 140.82.113.4:443/tcp - Port is open - time=12.7510ms
Probing 140.82.113.4:443/tcp - Port is open - time=12.4270ms
Probing 140.82.113.4:443/tcp - Port is open - time=11.4410ms
Probing 140.82.113.4:443/tcp - Port is open - time=12.7510ms
--- 140.82.113.4:443 tcping statistics ---
4 probes sent, 4 successful, 0.00% packet loss
Round-trip min/avg/max = 11.4410ms/12.3425ms/12.7510ms
Address resolved in 0.9340 ms
This project is built with Rust and Cargo. To install Rust and Cargo, follow the instructions here.
To build the project, navigate to the project directory and run:
cargo build --release
This will create an executable in the ./target/release directory.
To run the executable, navigate to the ./target/release directory and run:
./target/release/tcping
tcping <host:port> [-c count] [-t] [-e] [-j] [-o mode]
Where:
host:port
is the host and port to ping
-c count
specifies the number of times to ping the host (default: 4)
-t
enables continuous pinging
-e
exits immediately after a successful probe
-j
calculates and displays jitter
-o mode
sets the output mode (normal
, json
, csv
)
-h
displays help
-V
displays version
This tool allows you to measure the latency to a server using TCP. It is built with Rust and uses the clap library for command line argument parsing.
Thanks to Jetbrains for supporting this small open source project!