Пример #1
0
 def __init__(self, service, **kwargs):
     AbstractChecker.__init__(self, service, port=993, **kwargs)
Пример #2
0
 def __init__(self, service, **kwargs):
     AbstractChecker.__init__(self, service, port=110, **kwargs)
Пример #3
0
 def __init__(self, service, **kwargs):
     """This handler doesn't obey the port argument"""
     AbstractChecker.__init__(self, service, port=111, **kwargs)
Пример #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)
Пример #5
0
 def getAddress(self):
     ip, port = AbstractChecker.getAddress(self)
     addr = IP(ip)
     if addr.version() == 6:
         ip = '[%s]' % ip
     return ip, port