linspector-old/lib/services/ping.py

14 lines
345 B
Python
Raw Normal View History

"""
The ping service in pure Python.
"""
2013-06-18 00:10:14 +02:00
# http://code.activestate.com/recipes/409689-icmplib-library-for-creating-and-reading-icmp-pack/
from service import Service
class PingService(Service):
def __init__(self, **kwargs):
super(PingService, self).__init__(**kwargs)
def create(self, **kwargs):
return PingService(**kwargs)