2 This file is part of GNUnet
3 Copyright (C) 2008--2013 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 * @file testbed/testbed_helper.h
18 * @brief Message formats for communication between testbed api and
19 * gnunet-helper-testbed process
20 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
23 #ifndef TESTBED_HELPER_H
24 #define TESTBED_HELPER_H
26 GNUNET_NETWORK_STRUCT_BEGIN
28 * Initialization message for gnunet-helper-testbed to start testbed service
30 struct GNUNET_TESTBED_HelperInit
33 * Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT
35 struct GNUNET_MessageHeader header;
38 * The controller hostname size excluding the NULL termination character -
39 * strlen (hostname); cannot be zero
41 uint16_t trusted_ip_size GNUNET_PACKED;
44 * The hostname size excluding the NULL termination character - strlen
45 * (hostname); cannot be zero
47 uint16_t hostname_size GNUNET_PACKED;
50 * The size of the uncompressed configuration
52 uint16_t config_size GNUNET_PACKED;
54 /* Followed by NULL terminated trusted ip */
56 /* Followed by hostname of the machine on which helper runs. This is not NULL
59 /* Followed by serialized and compressed configuration which should be
60 * config_size long when un-compressed */
64 * Reply message from helper process
66 struct GNUNET_TESTBED_HelperReply
69 * Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_REPLY
71 struct GNUNET_MessageHeader header;
74 * Size of the uncompressed configuration
76 uint16_t config_size GNUNET_PACKED;
78 /* Followed by compressed configuration which should be config_size long when
82 GNUNET_NETWORK_STRUCT_END
84 /* end of testbed_helper.h */