Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cloverstd/tcping
ping over a tcp connection
https://github.com/cloverstd/tcping
command-line-tool golang network
Last synced: about 1 month ago
JSON representation
ping over a tcp connection
- Host: GitHub
- URL: https://github.com/cloverstd/tcping
- Owner: cloverstd
- License: mit
- Created: 2017-06-25T12:55:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T07:55:09.000Z (about 1 year ago)
- Last Synced: 2024-07-31T15:02:51.485Z (4 months ago)
- Topics: command-line-tool, golang, network
- Language: Go
- Size: 248 KB
- Stars: 795
- Watchers: 15
- Forks: 162
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - cloverstd/tcping - ping over a tcp connection (Go)
README
# tcping
tcping is like [tcping.exe](https://elifulkerson.com/projects/tcping.php), but written with Golang.
## Usage
- The default count of ping is 4.
- If the port is omitted, the default port is 80.
- The default interval of ping is 1s.
- The default timeout of ping is 1s.
### ping tcp
```bash
> tcping google.com 443
Ping tcp://google.com:443 - Connected - time=15.425732ms
Ping tcp://google.com:443 - Connected - time=2.628025ms
Ping tcp://google.com:443 - Connected - time=2.400356ms
Ping tcp://google.com:443 - Connected - time=1.967587msPing statistics tcp://google.com:443
4 probes sent.
4 successful, 0 failed.
Approximate trip times:
Minimum = 1.967587ms, Maximum = 15.425732ms, Average = 5.605425ms
```### ping http
```bash
> tcping -H hui.lu
Ping http://hui.lu:80 - http is open - time=232.880173ms method=GET status=200 bytes=10317
Ping http://hui.lu:80 - http is open - time=60.096446ms method=GET status=200 bytes=10317
Ping http://hui.lu:80 - http is open - time=56.750403ms method=GET status=200 bytes=10317
Ping http://hui.lu:80 - http is open - time=57.886907ms method=GET status=200 bytes=10317Ping statistics http://hui.lu:80
4 probes sent.
4 successful, 0 failed.
Approximate trip times:
Minimum = 56.750403ms, Maximum = 232.880173ms, Average = 101.903482ms
```