aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_channel.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-01-21 14:49:23 +0100
committerChristian Grothoff <christian@grothoff.org>2017-01-21 14:49:23 +0100
commit0eec69c59e625ecc41dcff20bf2395613185d342 (patch)
tree8f8383c711fba236a97e3fb6b67adeb74959588b /src/cadet/gnunet-service-cadet_channel.c
parentf52fc4b001758430bb911759c755d0f06d3eb693 (diff)
downloadgnunet-0eec69c59e625ecc41dcff20bf2395613185d342.tar.gz
gnunet-0eec69c59e625ecc41dcff20bf2395613185d342.zip
remaing remaining mandatory functions for basic operation
Diffstat (limited to 'src/cadet/gnunet-service-cadet_channel.c')
-rw-r--r--src/cadet/gnunet-service-cadet_channel.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/cadet/gnunet-service-cadet_channel.c b/src/cadet/gnunet-service-cadet_channel.c
index dee0c37d7..750acd8fd 100644
--- a/src/cadet/gnunet-service-cadet_channel.c
+++ b/src/cadet/gnunet-service-cadet_channel.c
@@ -1308,17 +1308,18 @@ handle_loopback (struct CadetChannel *ch,
1308 break; 1308 break;
1309 1309
1310 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA_ACK: 1310 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_APP_DATA_ACK:
1311 GCCH_handle_data_ack (ch, (struct GNUNET_CADET_ChannelDataAckMessage *) msgh, fwd); 1311 GCCH_handle_data_ack (ch,
1312 (const struct GNUNET_CADET_ChannelDataAckMessage *) msgh, fwd);
1312 break; 1313 break;
1313 1314
1314 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN: 1315 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN:
1315 GCCH_handle_create (ch->t, 1316 GCCH_handle_create (ch->t,
1316 (struct GNUNET_CADET_ChannelOpenMessage *) msgh); 1317 (const struct GNUNET_CADET_ChannelOpenMessage *) msgh);
1317 break; 1318 break;
1318 1319
1319 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK: 1320 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_OPEN_ACK:
1320 GCCH_handle_ack (ch, 1321 GCCH_handle_ack (ch,
1321 (struct GNUNET_CADET_ChannelManageMessage *) msgh, 1322 (const struct GNUNET_CADET_ChannelManageMessage *) msgh,
1322 fwd); 1323 fwd);
1323 break; 1324 break;
1324 1325
@@ -1328,7 +1329,7 @@ handle_loopback (struct CadetChannel *ch,
1328 1329
1329 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY: 1330 case GNUNET_MESSAGE_TYPE_CADET_CHANNEL_DESTROY:
1330 GCCH_handle_destroy (ch, 1331 GCCH_handle_destroy (ch,
1331 (struct GNUNET_CADET_ChannelManageMessage *) msgh, 1332 (const struct GNUNET_CADET_ChannelManageMessage *) msgh,
1332 fwd); 1333 fwd);
1333 break; 1334 break;
1334 1335
@@ -1842,11 +1843,11 @@ GCCH_handle_local_destroy (struct CadetChannel *ch,
1842 * @param c Client that requested the creation (will be the root). 1843 * @param c Client that requested the creation (will be the root).
1843 * @param msg Create Channel message. 1844 * @param msg Create Channel message.
1844 * 1845 *
1845 * @return GNUNET_OK if everything went fine, GNUNET_SYSERR otherwise. 1846 * @return #GNUNET_OK if everything went fine, #GNUNET_SYSERR otherwise.
1846 */ 1847 */
1847int 1848int
1848GCCH_handle_local_create (struct CadetClient *c, 1849GCCH_handle_local_create (struct CadetClient *c,
1849 struct GNUNET_CADET_ChannelOpenMessageMessage *msg) 1850 struct GNUNET_CADET_TunnelCreateMessage *msg)
1850{ 1851{
1851 struct CadetChannel *ch; 1852 struct CadetChannel *ch;
1852 struct CadetTunnel *t; 1853 struct CadetTunnel *t;