PhoenixSwarm  3.5.0
Library to ease communication between daemons
Loading...
Searching...
No Matches
MessageType.h
Go to the documentation of this file.
1/***************************************
2 Auteur : Pierre Aubert
3 Mail : pierre.aubert@lapp.in2p3.fr
4 Licence : CeCILL-C
5****************************************/
6
7#ifndef __MESSAGE_TYPE_H__
8#define __MESSAGE_TYPE_H__
9
10#include <ctime>
11#include "phoenix_data_stream.h"
12#include "phoenix_check_stream.h"
13
14namespace MessageType{
17 NONE = 0, //Nothing to do
18 STOP = 1, //Stop the Daemon properly (it can stop current work before stopping)
19 KILL = 2, //Kill the Daemon (it will not stop current work properly)
20 MESSAGE_CONFIRMATION = 5,//Confirmation that the message of certain id was correctly distributed
21 API_DISCOVERY = 6, //Request the API (data and callable functions) of the Daemon
22 API_DESCRITPION = 7, //Send description of the API of the given Daemon
23 ADD_DAEMON = 8, //Add a Daemon in the map of all known Daemon
24 REMOVE_DAEMON = 9, //Remove a Daemon in the map of all known Daemon
25 CALL_DATA = 10, //Ask for a Data value of a Daemon
26 RESULT_DATA = 11, //Result of a Data value from a Deamon
27 CALL_FUNCTION = 12, //Call of a function on a Daemon
28 RESULT_FUNCTION = 13, //Result of a called function from a Deamon
29 ERROR = 14 //Error on a function call from a Daemon
30 };
31}
32
33PHOENIX_DATA_STREAM_ENUM(MessageType::MessageType)
34PHOENIX_CHECK_STREAM_ENUM(MessageType::MessageType)
35
36#endif
37
MessageType
Type of the Message which can be exchanged by Daemon.
Definition MessageType.h:16
@ MESSAGE_CONFIRMATION
Definition MessageType.h:20