Exemple #1
0
 def host(self):
     self.hostButton.text = "WAITING"
     self.hostButton.callback = None
     sock = Socket.Server()
     print('i am server')
     self.sock = sock
     ctx['imHost'] = True
     ctx['sock'] = sock
     sock.connect()
     Scene.game.setScene(MainScene())
Exemple #2
0
import Socket
server=Socket.Server()
import Socket
import os

Socket.Server().run_server()