Commit 15bb49b1b55fb9b98b4c8070e552750587488703

Authored by Cédric RICARD
1 parent 8d0169c0

New message constants

calexium_lib/CXM_message_constants.anubis
@@ -8,6 +8,15 @@ @@ -8,6 +8,15 @@
8 * To change this template use Tools | Options | Coding | Edit Standard Headers. 8 * To change this template use Tools | Options | Coding | Edit Standard Headers.
9 */ 9 */
10 10
  11 +// **************** MAILBOX PROTOCOL ***************
  12 +
  13 +public define Word32 _C_SCAN_FOR_BOXES = 0x33770001. // Ask Boxes to publish their informations
  14 +public define Word32 _C_PUBLISH_BOX_STATUS = 0x33770002. // Used by Boxes to publish their informations
  15 +public define Word32 _C_SHUTDOWN_BOX = 0x33770003. // Used to ask a box to shutdown
  16 +public define Word32 _CXM_SET_BOX_NETWORK_PARAMS = 0x33770004. // Define network configuration of boxes
  17 +public define Word32 _CXM_RESET_ADMIN_PWD = 0x33770005. // Ask the MailFountain to reset the admin pwd.
  18 +public define Word32 _CXM_FULL_RESET = 0x33770006. // Ask the MailFountain to proceed to a full reset of its data. After that, the MailFountain is totally empty (mail, config, domain, logs, etc...)
  19 +
11 // **************** PACKAGE BUILDER *************** 20 // **************** PACKAGE BUILDER ***************
12 21
13 public define Word32 _CXM_PKG_MSG_BASIS = 0x33770400. // 22 public define Word32 _CXM_PKG_MSG_BASIS = 0x33770400. //
@@ -129,4 +138,6 @@ public define Word32 _CXM_STATS_SERVICE_MSG_BASIS = 0x33772500. @@ -129,4 +138,6 @@ public define Word32 _CXM_STATS_SERVICE_MSG_BASIS = 0x33772500.
129 // ************* SUPERVISER SERVICE ************* 138 // ************* SUPERVISER SERVICE *************
130 139
131 public define Word32 _CXM_SUPERVISER_SERVICE_MSG_BASIS = 0x33772600. 140 public define Word32 _CXM_SUPERVISER_SERVICE_MSG_BASIS = 0x33772600.
  141 +public define Word32 _CXM_SUPERVISER_SERVICE_ID = 0x33772600.
  142 +public define Word32 _CXM_SUPERVISER_GET_STATUS = 0x33772601.
132 143
calexium_lib/net_services/CXM_net_services.anubis
@@ -109,7 +109,6 @@ define One @@ -109,7 +109,6 @@ define One
109 List(NetService) net_services, 109 List(NetService) net_services,
110 String peer 110 String peer
111 )= 111 )=
112 - //TODO DR add a real management of error  
113 //println("Service NEGOCIATION [" + to_hexa(*msg.what) + "] received"); 112 //println("Service NEGOCIATION [" + to_hexa(*msg.what) + "] received");
114 if * msg.what = _CXM_REQUEST_FOR_SERVICE then 113 if * msg.what = _CXM_REQUEST_FOR_SERVICE then
115 if has_service(queue, msg, net_services) is 114 if has_service(queue, msg, net_services) is