コード例 #1
0
ファイル: client.py プロジェクト: pombredanne/happyboom
 def __init__(self, options):
     AsyncClient.__init__(self)
     try:
         self.connect(options.host, options.port)
     except socket_error, err:
         writeError(err, "Connection error")
         exit(1)
コード例 #2
0
ファイル: awale-ia.py プロジェクト: pombredanne/happyboom
 def __init__(self):
     AsyncClient.__init__(self)
     try:
         self.connect(HOST, PORT)
     except socket_error, err:
         writeError(err, "Connection error")
         exit(1)