Ejemplo n.º 1
0
 def __init__(self, sock, addr):
     Endpoint.__init__(self, sock, addr)
     Greenlet.__init__(self)
     self.observers = BatchList()
     self.gamedata = Gamedata()
     self.cmd_listeners = defaultdict(WeakSet)
     self.current_game = None
Ejemplo n.º 2
0
 def __init__(self, url, options=None):
     Endpoint.__init__(self, "")
     self._url = url
     self._client = self
     self.default_options = options or {}
     self._session = None
     self.persist_session = True
     # setup authenticator
     if "authentication" in self.default_options:
         self._setup_authentication(self.default_options["authentication"])
Ejemplo n.º 3
0
 def __init__(self, sock, addr):
     Endpoint.__init__(self, sock, addr)
     Greenlet.__init__(self)
     self.ctlcmds = Channel()
     self.gamedata = Gamedata(recording=True)