www.nico.schottelius.org/software/cinit/browse_source/cinit-0.3pre19/src/comm
Nico Schottelius 7c47ae1c48 update to cinit-0.3pre19
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-11-30 07:27:49 +01:00
..
answer_svc_disable.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
answer_svc_pid.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
answer_svc_status.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
answer_svc_stop.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
answer_version.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
cinit_append_data.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
cinit_cp_data.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
read_command.c update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00
README update to cinit-0.3pre19 2009-11-30 07:27:49 +01:00

This directory contains the server (aka cinit) part of the communication process.

All the communication functions do not depend on the underlying
inter process communication mechanism. Use the following functions:

   - send_command(): client function: sends a command to cinit
   - send_service(): client function: send the service name to operate on

   - read_command(): server function: reads beginning of a command
      * Extracts the command
      * reads client identification (=pid)
      * calls other functions, depending on the command send => switch()
   - read_service(): server function: reads service

   - write_answer(): server function: answer?
      * sends answers to clients => senseful?


   TODO:
      - define information function, that returns various information about
        a service