Source code for src.server.session.session

"""
Module containing Session class for the server as well as game managing utilities.
"""

from threading import Thread


[docs]class Session(object): """ Class representing a session. The session is a single established and ongoing connection between two remote players. """ def __init__(self, c1, c2): self._c1 = c1 self._c2 = c2
[docs] def game_func(self): pass
[docs] def start(self): game_thread = Thread(target=self.game_func)