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/transport/plugin_transport_wlan.c | |
parent | 2e33b6fcbad3c1b8ebf7176c39a201c39b23c2b2 (diff) | |
download | gnunet-0c89b2a16eae49cb23635f6d6c0f13da070c5c66.tar.gz gnunet-0c89b2a16eae49cb23635f6d6c0f13da070c5c66.zip |
implementing plugin session monitoring API (#3452)
Diffstat (limited to 'src/transport/plugin_transport_wlan.c')
-rw-r--r-- | src/transport/plugin_transport_wlan.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/transport/plugin_transport_wlan.c b/src/transport/plugin_transport_wlan.c index 912ff9a12..ab9fa4a74 100644 --- a/src/transport/plugin_transport_wlan.c +++ b/src/transport/plugin_transport_wlan.c | |||
@@ -773,7 +773,7 @@ wlan_plugin_disconnect_session (void *cls, | |||
773 | session); | 773 | session); |
774 | notify_session_monitor (plugin, | 774 | notify_session_monitor (plugin, |
775 | session, | 775 | session, |
776 | GNUNET_TRANSPORT_SS_DOWN); | 776 | GNUNET_TRANSPORT_SS_DONE); |
777 | GNUNET_CONTAINER_DLL_remove (endpoint->sessions_head, | 777 | GNUNET_CONTAINER_DLL_remove (endpoint->sessions_head, |
778 | endpoint->sessions_tail, | 778 | endpoint->sessions_tail, |
779 | session); | 779 | session); |
@@ -890,6 +890,9 @@ create_session (struct MacEndpoint *endpoint, | |||
890 | session); | 890 | session); |
891 | notify_session_monitor (endpoint->plugin, | 891 | notify_session_monitor (endpoint->plugin, |
892 | session, | 892 | session, |
893 | GNUNET_TRANSPORT_SS_INIT); | ||
894 | notify_session_monitor (endpoint->plugin, | ||
895 | session, | ||
893 | GNUNET_TRANSPORT_SS_UP); | 896 | GNUNET_TRANSPORT_SS_UP); |
894 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 897 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
895 | "Created new session %p for peer `%s' with endpoint %s\n", | 898 | "Created new session %p for peer `%s' with endpoint %s\n", |
@@ -2046,9 +2049,14 @@ wlan_plugin_setup_monitor (void *cls, | |||
2046 | { | 2049 | { |
2047 | for (mac = plugin->mac_head; NULL != mac; mac = mac->next) | 2050 | for (mac = plugin->mac_head; NULL != mac; mac = mac->next) |
2048 | for (session = mac->sessions_head; NULL != session; session = session->next) | 2051 | for (session = mac->sessions_head; NULL != session; session = session->next) |
2052 | { | ||
2053 | notify_session_monitor (plugin, | ||
2054 | session, | ||
2055 | GNUNET_TRANSPORT_SS_INIT); | ||
2049 | notify_session_monitor (plugin, | 2056 | notify_session_monitor (plugin, |
2050 | session, | 2057 | session, |
2051 | GNUNET_TRANSPORT_SS_UP); | 2058 | GNUNET_TRANSPORT_SS_UP); |
2059 | } | ||
2052 | sic (sic_cls, NULL, NULL); | 2060 | sic (sic_cls, NULL, NULL); |
2053 | } | 2061 | } |
2054 | } | 2062 | } |