ch,
&msg->target,
GNUNET_APPLICATION_TYPE_CONVERSATION_CONTROL,
- GNUNET_NO,
- GNUNET_YES);
+ GNUNET_MESH_OPTION_RELIABLE);
ch->reliable_mq = GNUNET_MESH_mq_create (ch->channel_reliable);
e = GNUNET_MQ_msg (ring, GNUNET_MESSAGE_TYPE_CONVERSATION_MESH_PHONE_RING);
ring->purpose.purpose = htonl (GNUNET_SIGNATURE_PURPOSE_CONVERSATION_RING);
GNUNET_free (ch->audio_data);
ch->audio_data = NULL;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Sending %u bytes of audio data via mesh\n",
- ch->audio_size);
+ "Sending %u bytes of audio data on line %u via mesh\n",
+ ch->audio_size, ch->remote_line);
return sizeof (struct MeshAudioMessage) + ch->audio_size;
}
ch->channel_reliable = channel;
ch->reliable_mq = GNUNET_MESH_mq_create (ch->channel_reliable);
ch->cid = line->cid_gen++;
+ ch->target = msg->source;
*channel_ctx = ch;
cring.header.type = htons (GNUNET_MESSAGE_TYPE_CONVERSATION_CS_PHONE_RING);
cring.header.size = htons (sizeof (cring));
ch,
&ch->target,
GNUNET_APPLICATION_TYPE_CONVERSATION_AUDIO,
- GNUNET_YES,
- GNUNET_NO);
+ GNUNET_MESH_OPTION_DEFAULT);
if (NULL == ch->channel_unreliable)
{
GNUNET_break (0);
GNUNET_break (0);
return GNUNET_OK;
}
- sender = *(info->peer);
+ sender = info->peer;
for (line = lines_head; NULL != line; line = line->next)
if (line->local_line == ntohl (msg->remote_line))
{
cam->cid = ch->cid;
memcpy (&cam[1], &msg[1], msize);
GNUNET_SERVER_notification_context_unicast (nc,
- line->client,
+ ch->line->client,
&cam->header,
GNUNET_YES);
GNUNET_MESH_receive_done (channel);
* @param channel new handle to the channel
* @param initiator peer that started the channel
* @param port port
+ * @param options channel option flags
* @return initial channel context for the channel;
* (can be NULL -- that's not an error)
*/
inbound_channel (void *cls,
struct GNUNET_MESH_Channel *channel,
const struct GNUNET_PeerIdentity *initiator,
- uint32_t port)
+ uint32_t port, enum GNUNET_MESH_ChannelOption options)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
_("Received incoming channel on port %u\n"),