src.server package

Submodules

src.server.conf module

User configuration file for the server. If you want to change the configuration of the server, this is the right place to do so.

src.server.conf.MAX_CONNECTIONS = 3

Maximal amount of time that must have elapsed for the client to be considered inactive (in seconds).

src.server.conf.SERVER_PORT = 50000

Maximal amount of concurrent connections. A connection here means the connection between two remote clients, not the connection from one client to the server.

src.server.server_data module

Module containing all necessary pre-configuration utilities for the server. Notice that no assignment of values takes place here. This module only provides utilities needed for any such assignment to take place. You should not make any changes to this code if you want to change the pong_server configuration, because your changes would still be overwritten.

src.server.server_data.get(name)[source]

Get data from private dictionary given its name.

Parameters:name – key from the private dictionary under which the wanted value

is stored

Returns:value stored in a private dictionary under the given key
src.server.server_data.set(name, value)[source]

Set specific server configuration parameter to a given value.

Parameters:
  • name – the name of the parameter (key from _server_data dictionary)
  • value – value to be set
Raises:

exc.VariableNotSettableError – if the parameter that you want to set

was not configured to be writable.
exc.UnrecognizedVariableError: if the name is not contained in the

private dictionary

src.server.setup module

Module contents

Main package for the pong_server program.