diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-10-23 10:59:15 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-10-23 10:59:15 +0000 |
commit | 1a45b968a48a82e57696ce618e1e77141b738182 (patch) | |
tree | c42bbd986f0df598621d88859362082549ce4fde /src/transport/transport.h | |
parent | 1aa2d5f160da455dd68c3d8be6f6e9ebf5b46d98 (diff) | |
download | gnunet-1a45b968a48a82e57696ce618e1e77141b738182.tar.gz gnunet-1a45b968a48a82e57696ce618e1e77141b738182.zip |
implementing monitoring functionality in transport service
Diffstat (limited to 'src/transport/transport.h')
-rw-r--r-- | src/transport/transport.h | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/transport/transport.h b/src/transport/transport.h index 87bfeb386..df45cd657 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h | |||
@@ -606,7 +606,17 @@ struct TransportPluginMonitorMessage | |||
606 | /** | 606 | /** |
607 | * An `enum GNUNET_TRANSPORT_SessionState` in NBO. | 607 | * An `enum GNUNET_TRANSPORT_SessionState` in NBO. |
608 | */ | 608 | */ |
609 | int32_t session_state GNUNET_PACKED; | 609 | uint16_t session_state GNUNET_PACKED; |
610 | |||
611 | /** | ||
612 | * #GNUNET_YES if this is an inbound connection, | ||
613 | * #GNUNET_NO if this is an outbound connection, | ||
614 | * #GNUNET_SYSERR if connections of this plugin | ||
615 | * are so fundamentally bidirectional | ||
616 | * that they have no 'initiator' | ||
617 | * Value given in NBO. | ||
618 | */ | ||
619 | int16_t is_inbound GNUNET_PACKED; | ||
610 | 620 | ||
611 | /** | 621 | /** |
612 | * Number of messages waiting transmission. | 622 | * Number of messages waiting transmission. |
@@ -624,9 +634,9 @@ struct TransportPluginMonitorMessage | |||
624 | struct GNUNET_TIME_AbsoluteNBO timeout; | 634 | struct GNUNET_TIME_AbsoluteNBO timeout; |
625 | 635 | ||
626 | /** | 636 | /** |
627 | * What is the expected latency? | 637 | * Until how long is this plugin currently blocked from reading? |
628 | */ | 638 | */ |
629 | struct GNUNET_TIME_RelativeNBO delay; | 639 | struct GNUNET_TIME_AbsoluteNBO delay; |
630 | 640 | ||
631 | /** | 641 | /** |
632 | * Which peer is this connection for? | 642 | * Which peer is this connection for? |
@@ -634,7 +644,7 @@ struct TransportPluginMonitorMessage | |||
634 | struct GNUNET_PeerIdentity peer; | 644 | struct GNUNET_PeerIdentity peer; |
635 | 645 | ||
636 | /** | 646 | /** |
637 | * Length of the plugin name in bytes, excluding 0-termination. | 647 | * Length of the plugin name in bytes, including 0-termination. |
638 | */ | 648 | */ |
639 | uint16_t plugin_name_len GNUNET_PACKED; | 649 | uint16_t plugin_name_len GNUNET_PACKED; |
640 | 650 | ||