aboutsummaryrefslogtreecommitdiff
path: root/src/transport/gnunet-communicator-unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-communicator-unix.c')
-rw-r--r--src/transport/gnunet-communicator-unix.c27
1 files changed, 26 insertions, 1 deletions
diff --git a/src/transport/gnunet-communicator-unix.c b/src/transport/gnunet-communicator-unix.c
index e8a1cf0b2..57fa22ecf 100644
--- a/src/transport/gnunet-communicator-unix.c
+++ b/src/transport/gnunet-communicator-unix.c
@@ -983,6 +983,29 @@ do_shutdown (void *cls)
983 983
984 984
985/** 985/**
986 * Function called when the transport service has received an
987 * acknowledgement for this communicator (!) via a different return
988 * path.
989 *
990 * Not applicable for UNIX.
991 *
992 * @param cls closure
993 * @param sender which peer sent the notification
994 * @param msg payload
995 */
996static void
997enc_notify_cb (void *cls,
998 const struct GNUNET_PeerIdentity *sender,
999 const struct GNUNET_MessageHeader *msg)
1000{
1001 (void) cls;
1002 (void) sender;
1003 (void) msg;
1004 GNUNET_break_op (0);
1005}
1006
1007
1008/**
986 * Setup communicator and launch network interactions. 1009 * Setup communicator and launch network interactions.
987 * 1010 *
988 * @param cls NULL (always) 1011 * @param cls NULL (always)
@@ -1087,7 +1110,9 @@ run (void *cls,
1087 COMMUNICATOR_ADDRESS_PREFIX, 1110 COMMUNICATOR_ADDRESS_PREFIX,
1088 GNUNET_TRANSPORT_CC_RELIABLE, 1111 GNUNET_TRANSPORT_CC_RELIABLE,
1089 &mq_init, 1112 &mq_init,
1090 NULL); 1113 NULL,
1114 &enc_notify_cb,
1115 NULL);
1091 if (NULL == ch) 1116 if (NULL == ch)
1092 { 1117 {
1093 GNUNET_break (0); 1118 GNUNET_break (0);