aboutsummaryrefslogtreecommitdiff
path: root/src/conversation/gnunet-service-conversation.c
diff options
context:
space:
mode:
authorSree Harsha Totakura <totakura@in.tum.de>2013-12-16 15:36:11 +0000
committerSree Harsha Totakura <totakura@in.tum.de>2013-12-16 15:36:11 +0000
commit5d8f669559fb4152d900a804f89f050963716fae (patch)
treeffee2942d68e3456e5c76a9ae7e30cd13cce16fe /src/conversation/gnunet-service-conversation.c
parent5344248f0bbb85e427b1a32ac78b53aa41084d1d (diff)
downloadgnunet-5d8f669559fb4152d900a804f89f050963716fae.tar.gz
gnunet-5d8f669559fb4152d900a804f89f050963716fae.zip
- extend mesh audio messag to contain source line number. This is needed to find the correct client channel to link unreliable audio channel
Diffstat (limited to 'src/conversation/gnunet-service-conversation.c')
-rw-r--r--src/conversation/gnunet-service-conversation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/conversation/gnunet-service-conversation.c b/src/conversation/gnunet-service-conversation.c
index 5d1aaf6e1..f44f6f128 100644
--- a/src/conversation/gnunet-service-conversation.c
+++ b/src/conversation/gnunet-service-conversation.c
@@ -753,6 +753,7 @@ transmit_line_audio (void *cls,
753 mam->header.size = htons (sizeof (struct MeshAudioMessage) + ch->audio_size); 753 mam->header.size = htons (sizeof (struct MeshAudioMessage) + ch->audio_size);
754 mam->header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_AUDIO); 754 mam->header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_AUDIO);
755 mam->remote_line = htonl (ch->remote_line); 755 mam->remote_line = htonl (ch->remote_line);
756 mam->source_line = htonl (ch->line->local_line);
756 memcpy (&mam[1], ch->audio_data, ch->audio_size); 757 memcpy (&mam[1], ch->audio_data, ch->audio_size);
757 GNUNET_free (ch->audio_data); 758 GNUNET_free (ch->audio_data);
758 ch->audio_data = NULL; 759 ch->audio_data = NULL;
@@ -1259,7 +1260,8 @@ handle_mesh_audio_message (void *cls,
1259 (0 == memcmp (&ch->target, 1260 (0 == memcmp (&ch->target,
1260 &sender, 1261 &sender,
1261 sizeof (struct GNUNET_PeerIdentity))) && 1262 sizeof (struct GNUNET_PeerIdentity))) &&
1262 (NULL == ch->channel_unreliable) ) 1263 (NULL == ch->channel_unreliable) &&
1264 (ch->remote_line == ntohl (msg->source_line)) )
1263 break; 1265 break;
1264 } 1266 }
1265 break; 1267 break;