cable_club.network.states module¶
Actual game server, accept user connections and interact with them.
- class cable_club.network.states.Connected(peer: socket)[source]¶
Bases:
StateConnected to the server.
- handle(socket: socket, server: Server, message: bytes) tuple[State, bool][source]¶
Forward messages to the peer.
- peer: socket¶
- class cable_club.network.states.Connecting[source]¶
Bases:
StateEstablishing a connection to the server.
- class cable_club.network.states.Finding(*, peer_id: int, name: str, id_: int, trainertype: str, win_text: str, lose_text: str, party: Party, party_raw: list[str])[source]¶
Bases:
StateLooking for a match.