Ejemplo n.º 1
0
 def __init__(self, service, **kwargs):
     AbstractChecker.__init__(self, service, port=993, **kwargs)
Ejemplo n.º 2
0
 def __init__(self, service, **kwargs):
     AbstractChecker.__init__(self, service, port=110, **kwargs)
Ejemplo n.º 3
0
 def __init__(self, service, **kwargs):
     """This handler doesn't obey the port argument"""
     AbstractChecker.__init__(self, service, port=111, **kwargs)
Ejemplo n.º 4
0
 def __init__(self, service, **kwargs):
     """Please note that this handler doesn't obey the port directive"""
     AbstractChecker.__init__(self, service, port=42, **kwargs)
Ejemplo n.º 5
0
 def getAddress(self):
     ip, port = AbstractChecker.getAddress(self)
     addr = IP(ip)
     if addr.version() == 6:
         ip = '[%s]' % ip
     return ip, port