aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authort3sserakt <t3ss@posteo.de>2021-04-15 15:35:28 +0200
committert3sserakt <t3ss@posteo.de>2021-04-15 15:35:28 +0200
commit925c210d978cd0e3dfc718d9e4c65ad713a817b9 (patch)
treeb769182d686220816a387336d525f37124dbad72 /src/transport
parenta785d16b7f49947458782f65f344036a848f4ac7 (diff)
downloadgnunet-925c210d978cd0e3dfc718d9e4c65ad713a817b9.tar.gz
gnunet-925c210d978cd0e3dfc718d9e4c65ad713a817b9.zip
- added handling of asynchronous task to testing ng. added testbed commands for setting up test invironment (atm wihtout the use of the ne async handling)
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/transport-testing-ng.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/transport/transport-testing-ng.h b/src/transport/transport-testing-ng.h
new file mode 100644
index 000000000..cd5ba65a9
--- /dev/null
+++ b/src/transport/transport-testing-ng.h
@@ -0,0 +1,71 @@
1/*
2 This file is part of GNUnet
3 Copyright (C) 2021 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
21/**
22 * @author t3sserakt
23 */
24
25struct TngState
26{
27 /**
28 * Handle to operation
29 */
30 struct GNUNET_TESTBED_Operation *operation;
31
32 /**
33 * Flag indicating if service is ready.
34 */
35 int service_ready;
36
37 /**
38 * Abort task identifier
39 */
40 struct GNUNET_SCHEDULER_Task *abort_task;
41
42 /**
43 * Label of peer command.
44 */
45 const char *peer_label;
46
47 /**
48 * Name of service to start.
49 */
50 const char *servicename;
51
52 /**
53 * Peer identity of the system.
54 */
55 struct GNUNET_PeerIdentity *peer_identity;
56
57 /**
58 * Message handler for transport service.
59 */
60 const struct GNUNET_MQ_MessageHandler *handlers;
61
62 /**
63 * Notify connect callback
64 */
65 GNUNET_TRANSPORT_NotifyConnect nc;
66
67 /**
68 * Closure for the @a nc callback
69 */
70 void *cb_cls;
71};