Server to client communication module

Author(s): Arsen Kostenko.

This module describes the server-2-client side behavior of any node. Since the behavior is not very different this module shares a number of fearures with

  • extensive usage of the Ciao threading mechanism;
  • interface made as simple as possible;
  • module is the only usage point;
  • parameters are passed through the module.

Usage and interface

Documentation on exports

Generally speaking, this predicate must perform some common tasks like:
  • listen to a port for incoming connections from clients,
  • and process requests from clients.
All the parameters needed are received from initial configuration, which is stored in module.