src.server.app package

Submodules

src.server.app.main module

Module containing entry point for the server program.

src.server.app.main.main()[source]

src.server.app.serv module

Main module for the Server class.

class src.server.app.serv.Server[source]

Bases: object

Class representing the server.

Class responsible for listening and managing clients. It handles their first connections, establishes and runs session for each pair and keeps track of whether any of the clients is still connected and active. In other words, the Server class handles all communication protocols not directly connected with a particular session, but rather with establishing it.

start()[source]

Start the server.

Run the pong_server’s main loop. There are two main tasks that the server does during this function. First, it listens for incomming messages, then handles them accordingly to their contents, and after that, it checks whether any of the currently connected clients has disconnected.

stop()[source]

Stops the execution of a server by raising SystemExit.

Module contents