Minimal Graphical IPV4 Ping Tool
Switch branches/tags
Nothing to show
Clone or download
Latest commit f50885b Nov 22, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore ignore tags file (for ctags) Dec 7, 2017
CNFGCocoaCGDriver.m Blurry text fix Jul 28, 2018
CNFGFunctions.c Update to newer CNPING Apr 5, 2017
CNFGFunctions.h Update to newer CNPING Apr 5, 2017
CNFGRasterizer.h Allow for full-on OpenGL mode. Apr 5, 2017
CNFGWinDriver.c Update to newer CNPING Apr 5, 2017
CNFGXDriver.c Merge branch 'master' of https://github.com/cnlohr/cnping Jun 22, 2018
LICENSE Update license info with new ping system. May 23, 2017
LICENSE.BSD-3-Clause Add licenses Aug 13, 2018
LICENSE.MIT Add licenses Aug 13, 2018
Makefile Fix compile errors on macOS (MSG_NOSIGNAL) Jul 17, 2018
README.md Update README.md Feb 17, 2018
cnping.c Update with 'r' key Nov 22, 2018
cnping.exe Update with 'r' key Nov 22, 2018
cnping.png Update screenshot Nov 30, 2016
error_handling.h Add feature for histograms. Jun 22, 2018
httping.c Fix import order for linux Jul 20, 2018
httping.h Update - include http:// as an optional protocol to cnping. Feb 17, 2018
os_generic.c tweak a few things to improve readability. Jun 21, 2017
os_generic.h tweak a few things to improve readability. Jun 21, 2017
ping.c fixed compiler warnings Jun 6, 2018
ping.h Update - include http:// as an optional protocol to cnping. Feb 17, 2018
resources.rc Update adding code to remember the last usage Nov 22, 2018
searchnet.c fixed compiler warnings Jun 6, 2018
uac.manifest Fix Windows driver to use almost no CPU Feb 24, 2017

README.md

cnping

Minimal Graphical IPV4 Ping/HTTP Ping Tool. (also comes with searchnet, like nmap but smaller and simpler). It uses rawdraw so it is OS independent.

Usage: cnping [host] [period] [extra size] [y-axis scaling] [window title]

	 [host]                 -- domain or IP address of ICMP ping target, or http://[host] i.e. http://google.com
	 [period]               -- period in seconds (optional), default 0.02
	 [extra size]           -- ping packet extra size (above 12), optional, default = 0
	 [const y-axis scaling] -- use a fixed scaling factor instead of auto scaling (optional)
	 [window title]         -- the title of the window (optional)

Picture:

If an http host is listed, the default request is HEAD /favicon.ico HTTP/1.1 since this is usually a very fast, easy operation for the server. If a specific file or uri is requested, that will be requested instead, i.e. http://github.com/cnlohr will request HEAD /cnlohr HTTP/1.1.

If a regular hostname is requested instead, ICMP (regular ping) will be used.

This allows cnping to be operated in environments where ICMP is prohibited by local computer or network policies.

Installation:

Ubuntu:

sudo apt install libxinerama-dev libxext-dev libx11-dev build-essential
make linuxinstall

'linuxinstall' builds the tool and copies it to your usr/local/bin folder, and sets the sticky bit or appropriate permissions allowing it to run as though it were root, allowing it to create raw sockets.

sudo cp cnping /usr/local/bin/
sudo chmod +s /usr/local/bin/cnping

Note that if only http pinging is requested, you do not need root access.

Archlinux:

cnping-git in the Arch User Repository