#tcp-port #command-line-arguments #testing #latency #ping #command-line-tool #arguments-parser

app tcping

A tool for testing native-to-target port latency, using Rust

3 releases (stable)

1.0.1 Jan 17, 2024
1.0.0 Jan 15, 2024
0.0.1 Jan 14, 2024

#529 in Network programming

Download history 16/week @ 2024-01-13 6/week @ 2024-02-17 31/week @ 2024-02-24 1/week @ 2024-03-02 37/week @ 2024-03-30 18/week @ 2024-04-06

55 downloads per month

MIT license

8KB
126 lines

Table of Contents↗️

tcping-rs

🌐 A TCP ping utility to determine reachability of a TCP port, using Rust.


Installation

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.

Running

To run the executable, navigate to the ./target/release directory and run:

./target/release/tcping

Usage

tcping <host:port> [-c count] [-t]

Where:

  • host:port is the host and port to ping
  • -c count is the number of times to ping the host (default: 4)
  • -t enables continuous pinging
  • -h displays help
  • -V displays version

About

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.

Dependencies

~3–12MB
~116K SLoC