2 This file is part of GNUnet.
3 Copyright (C) 2009 GNUnet e.V.
5 GNUnet is free software: you can redistribute it and/or modify it
6 under the terms of the GNU Affero General Public License as published
7 by the Free Software Foundation, either version 3 of the License,
8 or (at your option) any later version.
10 GNUnet is distributed in the hope that it will be useful, but
11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details.
17 * @author Christian Grothoff
23 #include "gnunet_common.h"
26 * This option will turn on the DEBUG loglevel for
27 * all processes controlled by this ARM!
29 #define DEBUG_ARM GNUNET_EXTRA_LOGGING
31 GNUNET_NETWORK_STRUCT_BEGIN
34 * Status update from ARM to client.
36 struct GNUNET_ARM_StatusMessage
40 * Reply to client, of type is #GNUNET_MESSAGE_TYPE_ARM_STATUS.
42 struct GNUNET_MessageHeader header;
45 * Status from the 'enum GNUNET_ARM_ServiceStatus'
49 /* followed by a 0-terminated service name */
52 struct GNUNET_ARM_Message
55 * Reply to client, type is #GNUNET_MESSAGE_TYPE_ARM_RESULT or
56 * #GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT.
58 * Request from client, type is #GNUNET_MESSAGE_TYPE_ARM_START or
59 * #GNUNET_MESSAGE_TYPE_ARM_STOP.
61 struct GNUNET_MessageHeader header;
69 * ID of a request that is being replied to.
71 * ID of a request that is being sent.
75 /* For requests - followed by a 0-terminated service name */
80 * Reply from ARM to client.
82 struct GNUNET_ARM_ResultMessage
86 * Reply to client, of type is #GNUNET_MESSAGE_TYPE_ARM_RESULT, with an ID.
88 struct GNUNET_ARM_Message arm_msg;
91 * Result from the `enum GNUNET_ARM_Result`
97 * Reply from ARM to client for the
98 * #GNUNET_MESSAGE_TYPE_ARM_LIST request followed by count
99 * '\0' terminated strings. header->size contains the
100 * total size (including all strings).
102 struct GNUNET_ARM_ListResultMessage
105 * Reply to client, of type is #GNUNET_MESSAGE_TYPE_ARM_LIST_RESULT,
108 struct GNUNET_ARM_Message arm_msg;
111 * Number of '\0' terminated strings that follow
117 GNUNET_NETWORK_STRUCT_END