From 0c89b2a16eae49cb23635f6d6c0f13da070c5c66 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 7 Nov 2014 16:33:42 +0000 Subject: implementing plugin session monitoring API (#3452) --- src/include/gnunet_transport_plugin.h | 73 ----------------------------------- 1 file changed, 73 deletions(-) (limited to 'src/include/gnunet_transport_plugin.h') 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 @@ -596,79 +596,6 @@ typedef enum GNUNET_ATS_Network_Type struct Session *session); -/** - * Possible states of a session in a plugin. - */ -enum GNUNET_TRANSPORT_SessionState -{ - /** - * Session is being torn down and about to disappear. - */ - GNUNET_TRANSPORT_SS_DOWN, - - /** - * Initial session handshake is in progress. - */ - GNUNET_TRANSPORT_SS_HANDSHAKE, - - /** - * Session is fully UP. - */ - GNUNET_TRANSPORT_SS_UP - -}; - - -/** - * Information about a plugin's session. - */ -struct GNUNET_TRANSPORT_SessionInfo -{ - - /** - * New state of the session. - */ - enum GNUNET_TRANSPORT_SessionState state; - - /** - * #GNUNET_YES if this is an inbound connection, - * #GNUNET_NO if this is an outbound connection, - * #GNUNET_SYSERR if connections of this plugin - * are so fundamentally bidirectional - * that they have no 'initiator' - */ - int is_inbound; - - /** - * Number of messages pending transmission for this session. - */ - unsigned int num_msg_pending; - - /** - * Number of bytes pending transmission for this session. - */ - unsigned int num_bytes_pending; - - /** - * Until when does this plugin refuse to receive to manage - * staying within the inbound quota? ZERO if receive is - * active. - */ - struct GNUNET_TIME_Absolute receive_delay; - - /** - * At what time will this session timeout (unless activity - * happens)? - */ - struct GNUNET_TIME_Absolute session_timeout; - - /** - * Address used by the session. Can be NULL if none is available. - */ - const struct GNUNET_HELLO_Address *address; -}; - - /** * Function called by the plugin with information about the * current sessions managed by the plugin (for monitoring). -- cgit v1.2.3