diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-07 16:33:42 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-07 16:33:42 +0000 |
commit | 0c89b2a16eae49cb23635f6d6c0f13da070c5c66 (patch) | |
tree | 559186ca56ac1279a611d31f3bf3816bc971431c /src/include/gnunet_transport_plugin.h | |
parent | 2e33b6fcbad3c1b8ebf7176c39a201c39b23c2b2 (diff) | |
download | gnunet-0c89b2a16eae49cb23635f6d6c0f13da070c5c66.tar.gz gnunet-0c89b2a16eae49cb23635f6d6c0f13da070c5c66.zip |
implementing plugin session monitoring API (#3452)
Diffstat (limited to 'src/include/gnunet_transport_plugin.h')
-rw-r--r-- | src/include/gnunet_transport_plugin.h | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/src/include/gnunet_transport_plugin.h b/src/include/gnunet_transport_plugin.h index 4bed48de5..17333551c 100644 --- a/src/include/gnunet_transport_plugin.h +++ b/src/include/gnunet_transport_plugin.h | |||
@@ -597,79 +597,6 @@ typedef enum GNUNET_ATS_Network_Type | |||
597 | 597 | ||
598 | 598 | ||
599 | /** | 599 | /** |
600 | * Possible states of a session in a plugin. | ||
601 | */ | ||
602 | enum GNUNET_TRANSPORT_SessionState | ||
603 | { | ||
604 | /** | ||
605 | * Session is being torn down and about to disappear. | ||
606 | */ | ||
607 | GNUNET_TRANSPORT_SS_DOWN, | ||
608 | |||
609 | /** | ||
610 | * Initial session handshake is in progress. | ||
611 | */ | ||
612 | GNUNET_TRANSPORT_SS_HANDSHAKE, | ||
613 | |||
614 | /** | ||
615 | * Session is fully UP. | ||
616 | */ | ||
617 | GNUNET_TRANSPORT_SS_UP | ||
618 | |||
619 | }; | ||
620 | |||
621 | |||
622 | /** | ||
623 | * Information about a plugin's session. | ||
624 | */ | ||
625 | struct GNUNET_TRANSPORT_SessionInfo | ||
626 | { | ||
627 | |||
628 | /** | ||
629 | * New state of the session. | ||
630 | */ | ||
631 | enum GNUNET_TRANSPORT_SessionState state; | ||
632 | |||
633 | /** | ||
634 | * #GNUNET_YES if this is an inbound connection, | ||
635 | * #GNUNET_NO if this is an outbound connection, | ||
636 | * #GNUNET_SYSERR if connections of this plugin | ||
637 | * are so fundamentally bidirectional | ||
638 | * that they have no 'initiator' | ||
639 | */ | ||
640 | int is_inbound; | ||
641 | |||
642 | /** | ||
643 | * Number of messages pending transmission for this session. | ||
644 | */ | ||
645 | unsigned int num_msg_pending; | ||
646 | |||
647 | /** | ||
648 | * Number of bytes pending transmission for this session. | ||
649 | */ | ||
650 | unsigned int num_bytes_pending; | ||
651 | |||
652 | /** | ||
653 | * Until when does this plugin refuse to receive to manage | ||
654 | * staying within the inbound quota? ZERO if receive is | ||
655 | * active. | ||
656 | */ | ||
657 | struct GNUNET_TIME_Absolute receive_delay; | ||
658 | |||
659 | /** | ||
660 | * At what time will this session timeout (unless activity | ||
661 | * happens)? | ||
662 | */ | ||
663 | struct GNUNET_TIME_Absolute session_timeout; | ||
664 | |||
665 | /** | ||
666 | * Address used by the session. Can be NULL if none is available. | ||
667 | */ | ||
668 | const struct GNUNET_HELLO_Address *address; | ||
669 | }; | ||
670 | |||
671 | |||
672 | /** | ||
673 | * Function called by the plugin with information about the | 600 | * Function called by the plugin with information about the |
674 | * current sessions managed by the plugin (for monitoring). | 601 | * current sessions managed by the plugin (for monitoring). |
675 | * | 602 | * |