Skip to content

Instantly share code, notes, and snippets.

View vipx1's full-sized avatar
💭
I may be slow to respond.

S. Smith vipx1

💭
I may be slow to respond.
View GitHub Profile
#!/usr/bin/env python3
"""
A pure Python "ping" implementation, based on a rewrite by Johannes Meyer,
of a script originally by Matthew Dixon Cowles. Which in turn was derived
from "ping.c", distributed in Linux's netkit. The version this was forked
out of can be found here: https://gist.github.com/pklaus/856268
I've rewritten nearly everything for enhanced performance and readability,
and removed unnecessary functions (assynchroneous PingQuery and related).