transport-testing-ng.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /*
  2. This file is part of GNUnet
  3. Copyright (C) 2021 GNUnet e.V.
  4. GNUnet is free software: you can redistribute it and/or modify it
  5. under the terms of the GNU Affero General Public License as published
  6. by the Free Software Foundation, either version 3 of the License,
  7. or (at your option) any later version.
  8. GNUnet is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. SPDX-License-Identifier: AGPL3.0-or-later
  15. */
  16. /**
  17. * @author t3sserakt
  18. */
  19. struct TngState
  20. {
  21. /**
  22. * Handle to operation
  23. */
  24. struct GNUNET_TESTBED_Operation *operation;
  25. /**
  26. * Flag indicating if service is ready.
  27. */
  28. int service_ready;
  29. /**
  30. * Abort task identifier
  31. */
  32. struct GNUNET_SCHEDULER_Task *abort_task;
  33. /**
  34. * Label of peer command.
  35. */
  36. const char *peer_label;
  37. /**
  38. * Name of service to start.
  39. */
  40. const char *servicename;
  41. /**
  42. * Peer identity of the system.
  43. */
  44. struct GNUNET_PeerIdentity *peer_identity;
  45. /**
  46. * Message handler for transport service.
  47. */
  48. const struct GNUNET_MQ_MessageHandler *handlers;
  49. /**
  50. * Notify connect callback
  51. */
  52. GNUNET_TRANSPORT_NotifyConnect nc;
  53. /**
  54. * Closure for the @a nc callback
  55. */
  56. void *cb_cls;
  57. };