GNUnet  0.20.0
testbed_helper.h
Go to the documentation of this file.
1 /*
2  This file is part of GNUnet
3  Copyright (C) 2008--2013 GNUnet e.V.
4 
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.
9 
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.
14 
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/>.
17 
18  SPDX-License-Identifier: AGPL3.0-or-later
19  */
20 
28 #ifndef TESTBED_HELPER_H
29 #define TESTBED_HELPER_H
30 
36 {
41 
47 
53 
58 
59  /* Followed by NULL terminated trusted ip */
60 
61  /* Followed by hostname of the machine on which helper runs. This is not NULL
62  * terminated */
63 
64  /* Followed by serialized and compressed configuration which should be
65  * config_size long when un-compressed */
66 };
67 
72 {
77 
82 
83  /* Followed by compressed configuration which should be config_size long when
84  * un-compressed */
85 };
86 
88 #endif
89 /* end of testbed_helper.h */
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Header for all communications.
Initialization message for gnunet-helper-testbed to start testbed service.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_INIT.
uint16_t trusted_ip_size
The controller hostname size excluding the NULL termination character - strlen (hostname); cannot be ...
uint16_t hostname_size
The hostname size excluding the NULL termination character - strlen (hostname); cannot be zero.
uint16_t config_size
The size of the uncompressed configuration.
Reply message from helper process.
uint16_t config_size
Size of the uncompressed configuration.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_HELPER_REPLY.