GNUnet  0.11.x
transport-testing-ng.h
Go to the documentation of this file.
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 
25 struct TngState
26 {
31 
36 
41 
45  const char *peer_label;
46 
50  const char *servicename;
51 
56 
61 
66 
70  void *cb_cls;
71 };
int service_ready
Flag indicating if service is ready.
struct GNUNET_TESTBED_Operation * operation
Handle to operation.
void *(* GNUNET_TRANSPORT_NotifyConnect)(void *cls, const struct GNUNET_PeerIdentity *peer, struct GNUNET_MQ_Handle *mq)
Function called to notify transport users that another peer connected to us.
struct GNUNET_SCHEDULER_Task * abort_task
Abort task identifier.
const char * servicename
Name of service to start.
Opaque handle to an abstract operation to be executed by the testing framework.
struct GNUNET_PeerIdentity * peer_identity
Peer identity of the system.
Message handler for a specific message type.
void * cb_cls
Closure for the nc callback.
GNUNET_TRANSPORT_NotifyConnect nc
Notify connect callback.
The identity of the host (wraps the signing key of the peer).
Entry in list of pending tasks.
Definition: scheduler.c:134
const char * peer_label
Label of peer command.
const struct GNUNET_MQ_MessageHandler * handlers
Message handler for transport service.