示例#1
0
 def join(self):
     self.joinButton.text = "WAITING"
     self.joinButton.callback = None
     sock = Socket.Client()
     print('i am client')
     self.sock = sock
     ctx['imHost'] = False
     ctx['sock'] = sock
     sock.connect()
     Scene.game.setScene(MainScene())
示例#2
0
import Socket
client=Socket.Client()
示例#3
0
import Socket
import os
Socket.Client().run_client()