aboutsummaryrefslogtreecommitdiff
path: root/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-19 18:48:02 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-19 18:48:02 +0100
commit8802f213c67692abebebdf9fe2d4a77afe2b1fcb (patch)
tree6ca39dbf3d851a88f2ed7f21faba3616c13b3796 /src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
parent360d7afad50d1af425a20e89419d2063a6a0e220 (diff)
downloadgnunet-8802f213c67692abebebdf9fe2d4a77afe2b1fcb.tar.gz
gnunet-8802f213c67692abebebdf9fe2d4a77afe2b1fcb.zip
misc logging, no semantic changes
Diffstat (limited to 'src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c')
-rw-r--r--src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
index 79a6c6704..9f8d98657 100644
--- a/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
+++ b/src/scalarproduct/gnunet-service-scalarproduct-ecc_alice.c
@@ -260,16 +260,22 @@ destroy_service_session (struct AliceServiceSession *s)
260 } 260 }
261 if (NULL != s->intersection_listen) 261 if (NULL != s->intersection_listen)
262 { 262 {
263 LOG (GNUNET_ERROR_TYPE_DEBUG,
264 "Set intersection, listen still up!\n");
263 GNUNET_SET_listen_cancel (s->intersection_listen); 265 GNUNET_SET_listen_cancel (s->intersection_listen);
264 s->intersection_listen = NULL; 266 s->intersection_listen = NULL;
265 } 267 }
266 if (NULL != s->intersection_op) 268 if (NULL != s->intersection_op)
267 { 269 {
270 LOG (GNUNET_ERROR_TYPE_DEBUG,
271 "Set intersection, op still ongoing!\n");
268 GNUNET_SET_operation_cancel (s->intersection_op); 272 GNUNET_SET_operation_cancel (s->intersection_op);
269 s->intersection_op = NULL; 273 s->intersection_op = NULL;
270 } 274 }
271 if (NULL != s->intersection_set) 275 if (NULL != s->intersection_set)
272 { 276 {
277 LOG (GNUNET_ERROR_TYPE_DEBUG,
278 "Set intersection, set still there!\n");
273 GNUNET_SET_destroy (s->intersection_set); 279 GNUNET_SET_destroy (s->intersection_set);
274 s->intersection_set = NULL; 280 s->intersection_set = NULL;
275 } 281 }
@@ -769,6 +775,9 @@ cb_intersection_request_alice (void *cls,
769{ 775{
770 struct AliceServiceSession *s = cls; 776 struct AliceServiceSession *s = cls;
771 777
778 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
779 "Received intersection request from %s!\n",
780 GNUNET_i2s (other_peer));
772 if (0 != memcmp (other_peer, 781 if (0 != memcmp (other_peer,
773 &s->peer, 782 &s->peer,
774 sizeof (struct GNUNET_PeerIdentity))) 783 sizeof (struct GNUNET_PeerIdentity)))
@@ -947,8 +956,12 @@ handle_alice_client_message_multipart (void *cls,
947 if (s->total != s->client_received_element_count) 956 if (s->total != s->client_received_element_count)
948 { 957 {
949 /* more to come */ 958 /* more to come */
959 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
960 "Received client multipart data, waiting for more!\n");
950 return; 961 return;
951 } 962 }
963 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
964 "Launching computation\n");
952 client_request_complete_alice (s); 965 client_request_complete_alice (s);
953} 966}
954 967
@@ -1053,8 +1066,12 @@ handle_alice_client_message (void *cls,
1053 if (s->total != s->client_received_element_count) 1066 if (s->total != s->client_received_element_count)
1054 { 1067 {
1055 /* wait for multipart msg */ 1068 /* wait for multipart msg */
1069 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1070 "Received partial client request, waiting for more!\n");
1056 return; 1071 return;
1057 } 1072 }
1073 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1074 "Launching computation\n");
1058 client_request_complete_alice (s); 1075 client_request_complete_alice (s);
1059} 1076}
1060 1077