diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-12-16 17:13:42 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-12-16 17:13:42 +0100 |
commit | d37218d0b13292b78fcfc08d2903d6e415da0236 (patch) | |
tree | f9f354e6859b9868859cf421acbf747d8351ee7b /src/transport/gnunet-communicator-unix.c | |
parent | 18784b77764c56842ae59428f3ebea95c157ffab (diff) | |
download | gnunet-d37218d0b13292b78fcfc08d2903d6e415da0236.tar.gz gnunet-d37218d0b13292b78fcfc08d2903d6e415da0236.zip |
more work on tng
Diffstat (limited to 'src/transport/gnunet-communicator-unix.c')
-rw-r--r-- | src/transport/gnunet-communicator-unix.c | 27 |
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 | */ | ||
996 | static void | ||
997 | enc_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); |