aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_transport_service.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2014-01-08 10:50:27 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2014-01-08 10:50:27 +0000
commit0db0f5b8f69e2137256904edf29222e71051e77c (patch)
tree490944a3362d95c412c3d26f034a229c8e106676 /src/include/gnunet_transport_service.h
parentf98fb14e5a1c4acc0444d9c78c654468fab02c6a (diff)
downloadgnunet-0db0f5b8f69e2137256904edf29222e71051e77c.tar.gz
gnunet-0db0f5b8f69e2137256904edf29222e71051e77c.zip
implementing monitoring api
Diffstat (limited to 'src/include/gnunet_transport_service.h')
-rw-r--r--src/include/gnunet_transport_service.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/gnunet_transport_service.h b/src/include/gnunet_transport_service.h
index dee8e7118..5448460ad 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -587,6 +587,23 @@ GNUNET_TRANSPORT_address_to_string_cancel (struct
587 GNUNET_TRANSPORT_AddressToStringContext 587 GNUNET_TRANSPORT_AddressToStringContext
588 *pic); 588 *pic);
589 589
590/**
591 * Convert a transport state to a human readable string.
592 *
593 * @param alc handle for the request to cancel
594 */
595const char *
596GNUNET_TRANSPORT_p2s (enum GNUNET_TRANSPORT_PeerState state);
597
598
599/**
600 * Check if a state is defined as connected
601 *
602 * @param state the state value
603 * @return GNUNET_YES or GNUNET_NO
604 */
605int
606GNUNET_TRANSPORT_is_connected (enum GNUNET_TRANSPORT_PeerState state);
590 607
591/** 608/**
592 * Return information about a specific peer or all peers currently known to 609 * Return information about a specific peer or all peers currently known to