diff options
Diffstat (limited to 'src/social/social_api.c')
-rw-r--r-- | src/social/social_api.c | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/social/social_api.c b/src/social/social_api.c index 73587598b..f37c52e2c 100644 --- a/src/social/social_api.c +++ b/src/social/social_api.c | |||
@@ -398,6 +398,9 @@ place_cleanup (struct GNUNET_SOCIAL_Place *plc) | |||
398 | { | 398 | { |
399 | struct GNUNET_HashCode place_pub_hash; | 399 | struct GNUNET_HashCode place_pub_hash; |
400 | 400 | ||
401 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
402 | "place_cleanup\n"); | ||
403 | |||
401 | GNUNET_CRYPTO_hash (&plc->pub_key, sizeof (plc->pub_key), &place_pub_hash); | 404 | GNUNET_CRYPTO_hash (&plc->pub_key, sizeof (plc->pub_key), &place_pub_hash); |
402 | if (NULL != plc->tmit) | 405 | if (NULL != plc->tmit) |
403 | { | 406 | { |
@@ -1511,6 +1514,8 @@ GNUNET_SOCIAL_host_announce (struct GNUNET_SOCIAL_Host *hst, | |||
1511 | void *notify_data_cls, | 1514 | void *notify_data_cls, |
1512 | enum GNUNET_SOCIAL_AnnounceFlags flags) | 1515 | enum GNUNET_SOCIAL_AnnounceFlags flags) |
1513 | { | 1516 | { |
1517 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
1518 | "PSYC_transmit_message for host\n"); | ||
1514 | if (GNUNET_OK == | 1519 | if (GNUNET_OK == |
1515 | GNUNET_PSYC_transmit_message (hst->plc.tmit, method_name, env, | 1520 | GNUNET_PSYC_transmit_message (hst->plc.tmit, method_name, env, |
1516 | NULL, notify_data, notify_data_cls, flags)) | 1521 | NULL, notify_data, notify_data_cls, flags)) |
@@ -1606,15 +1611,15 @@ GNUNET_SOCIAL_host_leave (struct GNUNET_SOCIAL_Host *hst, | |||
1606 | GNUNET_ContinuationCallback disconnect_cb, | 1611 | GNUNET_ContinuationCallback disconnect_cb, |
1607 | void *cls) | 1612 | void *cls) |
1608 | { | 1613 | { |
1609 | struct GNUNET_MessageHeader *msg; | ||
1610 | struct GNUNET_MQ_Envelope *envelope; | 1614 | struct GNUNET_MQ_Envelope *envelope; |
1611 | 1615 | ||
1616 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
1617 | "sending _notice_place_closing\n"); | ||
1612 | GNUNET_SOCIAL_host_announce (hst, "_notice_place_closing", env, NULL, NULL, | 1618 | GNUNET_SOCIAL_host_announce (hst, "_notice_place_closing", env, NULL, NULL, |
1613 | GNUNET_SOCIAL_ANNOUNCE_NONE); | 1619 | GNUNET_SOCIAL_ANNOUNCE_NONE); |
1614 | hst->plc.disconnect_cb = disconnect_cb; | 1620 | hst->plc.disconnect_cb = disconnect_cb; |
1615 | hst->plc.disconnect_cls = cls; | 1621 | hst->plc.disconnect_cls = cls; |
1616 | envelope = GNUNET_MQ_msg (msg, | 1622 | envelope = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE); |
1617 | GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE); | ||
1618 | GNUNET_MQ_send (hst->plc.mq, | 1623 | GNUNET_MQ_send (hst->plc.mq, |
1619 | envelope); | 1624 | envelope); |
1620 | } | 1625 | } |
@@ -1987,6 +1992,9 @@ GNUNET_SOCIAL_guest_talk (struct GNUNET_SOCIAL_Guest *gst, | |||
1987 | void *notify_data_cls, | 1992 | void *notify_data_cls, |
1988 | enum GNUNET_SOCIAL_TalkFlags flags) | 1993 | enum GNUNET_SOCIAL_TalkFlags flags) |
1989 | { | 1994 | { |
1995 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | ||
1996 | "PSYC_transmit_message for guest\n"); | ||
1997 | |||
1990 | struct GNUNET_SOCIAL_Place *plc = &gst->plc; | 1998 | struct GNUNET_SOCIAL_Place *plc = &gst->plc; |
1991 | GNUNET_assert (NULL != plc->tmit); | 1999 | GNUNET_assert (NULL != plc->tmit); |
1992 | 2000 | ||
@@ -2068,15 +2076,13 @@ GNUNET_SOCIAL_guest_leave (struct GNUNET_SOCIAL_Guest *gst, | |||
2068 | GNUNET_ContinuationCallback disconnect_cb, | 2076 | GNUNET_ContinuationCallback disconnect_cb, |
2069 | void *cls) | 2077 | void *cls) |
2070 | { | 2078 | { |
2071 | struct GNUNET_MessageHeader *msg; | ||
2072 | struct GNUNET_MQ_Envelope *envelope; | 2079 | struct GNUNET_MQ_Envelope *envelope; |
2073 | 2080 | ||
2074 | GNUNET_SOCIAL_guest_talk (gst, "_notice_place_leave", env, NULL, NULL, | 2081 | GNUNET_SOCIAL_guest_talk (gst, "_notice_place_leave", env, NULL, NULL, |
2075 | GNUNET_SOCIAL_TALK_NONE); | 2082 | GNUNET_SOCIAL_TALK_NONE); |
2076 | gst->plc.disconnect_cb = disconnect_cb; | 2083 | gst->plc.disconnect_cb = disconnect_cb; |
2077 | gst->plc.disconnect_cls = cls; | 2084 | gst->plc.disconnect_cls = cls; |
2078 | envelope = GNUNET_MQ_msg (msg, | 2085 | envelope = GNUNET_MQ_msg_header (GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE); |
2079 | GNUNET_MESSAGE_TYPE_SOCIAL_PLACE_LEAVE); | ||
2080 | GNUNET_MQ_send (gst->plc.mq, | 2086 | GNUNET_MQ_send (gst->plc.mq, |
2081 | envelope); | 2087 | envelope); |
2082 | } | 2088 | } |