Esempio n. 1
0
 def __init__(self, options):
     AsyncClient.__init__(self)
     try:
         self.connect(options.host, options.port)
     except socket_error, err:
         writeError(err, "Connection error")
         exit(1)
Esempio n. 2
0
 def __init__(self):
     AsyncClient.__init__(self)
     try:
         self.connect(HOST, PORT)
     except socket_error, err:
         writeError(err, "Connection error")
         exit(1)