Skip to content

TimothyYe/tcping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCPing

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.

asciicast

Features

  • 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.

Usage

tcping <host> <port> -n <number_of_pings>

Parameters

  • <host> : The host to ping.
  • <port> : The port to ping.
  • -n, --number : The number of ping attempts (default is 10).

Example

tcping google.com 443 -n 5

Installation

From Source

  1. Clone the repository:
git clone https://github.com/TimothyYe/tcping.git
  1. Build the project:
cargo build --release
  1. Run the binary:
./target/release/tcping google.com 443 -n 10

From Binary

Download the binary from the Releases page.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages