aboutsummaryrefslogtreecommitdiff
path: root/src/arm/gnunet-service-arm.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-06-22 07:19:52 +0000
committerChristian Grothoff <christian@grothoff.org>2016-06-22 07:19:52 +0000
commiteed68e90e8564b578fd92ef130d305465cecf936 (patch)
tree0e2bc52e369179487bde1c047165c94d93669b36 /src/arm/gnunet-service-arm.c
parentdd9ed7931e52705b216c346127108520c5e4460b (diff)
downloadgnunet-eed68e90e8564b578fd92ef130d305465cecf936.tar.gz
gnunet-eed68e90e8564b578fd92ef130d305465cecf936.zip
convert monitor API to use MQ
Diffstat (limited to 'src/arm/gnunet-service-arm.c')
-rw-r--r--src/arm/gnunet-service-arm.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/arm/gnunet-service-arm.c b/src/arm/gnunet-service-arm.c
index 0ccffa27b..8bc6e9e07 100644
--- a/src/arm/gnunet-service-arm.c
+++ b/src/arm/gnunet-service-arm.c
@@ -989,7 +989,8 @@ handle_stop (void *cls,
989 * @param message the actual message 989 * @param message the actual message
990 */ 990 */
991static void 991static void
992handle_list (void *cls, struct GNUNET_SERVER_Client *client, 992handle_list (void *cls,
993 struct GNUNET_SERVER_Client *client,
993 const struct GNUNET_MessageHeader *message) 994 const struct GNUNET_MessageHeader *message)
994{ 995{
995 struct GNUNET_ARM_ListResultMessage *msg; 996 struct GNUNET_ARM_ListResultMessage *msg;
@@ -1595,7 +1596,8 @@ setup_service (void *cls,
1595 * @param client identification of the client 1596 * @param client identification of the client
1596 */ 1597 */
1597static void 1598static void
1598handle_client_connecting (void *cls, struct GNUNET_SERVER_Client *client) 1599handle_client_connecting (void *cls,
1600 struct GNUNET_SERVER_Client *client)
1599{ 1601{
1600 /* All clients are considered to be of the "monitor" kind 1602 /* All clients are considered to be of the "monitor" kind
1601 * (that is, they don't affect ARM shutdown). 1603 * (that is, they don't affect ARM shutdown).
@@ -1615,9 +1617,12 @@ handle_client_connecting (void *cls, struct GNUNET_SERVER_Client *client)
1615 * #GNUNET_SYSERR to close it (signal serious error) 1617 * #GNUNET_SYSERR to close it (signal serious error)
1616 */ 1618 */
1617static void 1619static void
1618handle_monitor (void *cls, struct GNUNET_SERVER_Client *client, 1620handle_monitor (void *cls,
1619 const struct GNUNET_MessageHeader *message) 1621 struct GNUNET_SERVER_Client *client,
1622 const struct GNUNET_MessageHeader *message)
1620{ 1623{
1624 /* FIXME: might want to start by letting monitor know about
1625 services that are already running */
1621 /* Removal is handled by the server implementation, internally. */ 1626 /* Removal is handled by the server implementation, internally. */
1622 if ((NULL != client) && (NULL != notifier)) 1627 if ((NULL != client) && (NULL != notifier))
1623 { 1628 {