-only notify AFTER sending is really close to finished, not before
[oweals/gnunet.git] / src / mesh / gnunet-service-mesh_connection.h
index d35630ef6577a9fc8644680a17ec594f85d6e277..00b5e082ba1f1693e1e8d5b32a0dc45c3bd73649 100644 (file)
@@ -434,10 +434,6 @@ GMC_is_sendable (struct MeshConnection *c, int fwd);
  * is called. Once the continuation is called, the message is no longer in the
  * queue.
  *
- * If the send function was given no continuation, GMC_cancel should
- * NOT be called, since it's not possible to determine if the message has
- * already been sent.
- *
  * @param q Handle to the queue.
  */
 void
@@ -454,7 +450,8 @@ GMC_cancel (struct MeshConnectionQueue *q);
  * @param cont Continuation called once message is sent. Can be NULL.
  * @param cont_cls Closure for @c cont.
  *
- * @return Handle to cancel the message before it's sent. NULL on error.
+ * @return Handle to cancel the message before it's sent.
+ *         NULL on error or if @c cont is NULL.
  *         Invalid on @c cont call.
  */
 struct MeshConnectionQueue *