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.
15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
18 SPDX-License-Identifier: AGPL3.0-or-later
22 * @file testbed/testbed_helper.h
23 * @brief Message formats for communication between testbed api and
24 * gnunet-helper-testbed process
25 * @author Sree Harsha Totakura <sreeharsha@totakura.in>
28 #ifndef TESTBED_HELPER_H
29 #define TESTBED_HELPER_H
31 GNUNET_NETWORK_STRUCT_BEGIN
33 * Initialization message for gnunet-helper-testbed to start testbed service
35 struct GNUNET_TESTBED_HelperInit
38 * Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT
40 struct GNUNET_MessageHeader header;
43 * The controller hostname size excluding the NULL termination character -
44 * strlen (hostname); cannot be zero
46 uint16_t trusted_ip_size GNUNET_PACKED;
49 * The hostname size excluding the NULL termination character - strlen
50 * (hostname); cannot be zero
52 uint16_t hostname_size GNUNET_PACKED;
55 * The size of the uncompressed configuration
57 uint16_t config_size GNUNET_PACKED;
59 /* Followed by NULL terminated trusted ip */
61 /* Followed by hostname of the machine on which helper runs. This is not NULL
64 /* Followed by serialized and compressed configuration which should be
65 * config_size long when un-compressed */
69 * Reply message from helper process
71 struct GNUNET_TESTBED_HelperReply
74 * Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_REPLY
76 struct GNUNET_MessageHeader header;
79 * Size of the uncompressed configuration
81 uint16_t config_size GNUNET_PACKED;
83 /* Followed by compressed configuration which should be config_size long when
87 GNUNET_NETWORK_STRUCT_END
89 /* end of testbed_helper.h */