aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-11-07 16:24:46 +0000
committerBart Polot <bart@net.in.tum.de>2013-11-07 16:24:46 +0000
commit9d10ae765c3e83a2cac780a02cd5aed9a81466f8 (patch)
tree657cdfac7001477a153b0d4b553227b414f1a12b /src/mesh/gnunet-service-mesh_local.c
parentb989a383f8a23b6d5b161b8746495d63e99323b2 (diff)
downloadgnunet-9d10ae765c3e83a2cac780a02cd5aed9a81466f8.tar.gz
gnunet-9d10ae765c3e83a2cac780a02cd5aed9a81466f8.zip
- fix #3091
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index 78a63956f..9430fbefa 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -947,6 +947,32 @@ GML_send_ack (struct MeshClient *c, MESH_ChannelNumber id)
947 947
948 948
949/** 949/**
950 * Build a local channel NACK message and send it to a local client.
951 *
952 * @param c Client to whom send the NACK.
953 * @param id Channel ID to use
954 */
955void
956GML_send_nack (struct MeshClient *c, MESH_ChannelNumber id)
957{
958 struct GNUNET_MESH_LocalAck msg;
959
960 LOG (GNUNET_ERROR_TYPE_DEBUG,
961 "send local nack on %X towards %p\n",
962 id, c);
963
964 msg.header.size = htons (sizeof (msg));
965 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_NACK);
966 msg.channel_id = htonl (id);
967 GNUNET_SERVER_notification_context_unicast (nc,
968 c->handle,
969 &msg.header,
970 GNUNET_NO);
971
972}
973
974
975/**
950 * Notify the client that a new incoming channel was created. 976 * Notify the client that a new incoming channel was created.
951 * 977 *
952 * @param c Client to notify. 978 * @param c Client to notify.