case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_ACK:
case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY:
case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN:
- case GNUNET_MESSAGE_TYPE_MESH_KEEPALIVE:
return GNUNET_YES;
case GNUNET_MESSAGE_TYPE_MESH_ENCRYPTED:
GNUNET_break (0);
}
- if (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_BROKEN != q->type)
- return GMC_is_sendable (q->c, q->fwd);
-
- return GNUNET_NO;
+ return GMC_is_sendable (q->c, q->fwd);
}
*
* @param peer The destination peer.
*
- * @return Best current known path towards the peer, if any.
+ * @return First transmittable message, if any. Otherwise, NULL.
*/
static struct MeshPeerQueue *
peer_get_first_message (const struct MeshPeer *peer)
for (q = peer->queue_head; NULL != q; q = q->next)
{
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "Checking %p towards %s\n", q, GMC_2s (q->c));
if (queue_is_sendable (q))
return q;
}