Python ping Module

Source: Internet
Author: User
Tags socket error

:Download

Paste v0.2 code backup


#!/usr/bin/env python"""    A pure python ping implementation using raw socket.    Note that ICMP messages can only be sent from processes running as root.    Derived from ping.c distributed in Linux's netkit. That code is    copyright (c) 1989 by The Regents of the University of California.    That code is in turn derived from code written by Mike Muuss of the    US Army Ballistic Research Laboratory in December, 1983 and    placed in the public domain. They have my thanks.    Bugs are naturally mine. I'd be glad to hear about them. There are    certainly word - size dependenceies here.    Copyright (c) Matthew Dixon Cowles, 


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.