aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_core_service.h
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2013-10-06 22:54:21 +0000
committerFlorian Dold <florian.dold@gmail.com>2013-10-06 22:54:21 +0000
commit14ddd612091d3a894901bdf6213db7487178f6e2 (patch)
tree30c529c77e87723d2d2798209f4697792cff21fe /src/include/gnunet_core_service.h
parent9f7e7d369a842fe1621bc4b9af64ac3e5f609bde (diff)
downloadgnunet-14ddd612091d3a894901bdf6213db7487178f6e2.tar.gz
gnunet-14ddd612091d3a894901bdf6213db7487178f6e2.zip
MQ for CORE
Diffstat (limited to 'src/include/gnunet_core_service.h')
-rw-r--r--src/include/gnunet_core_service.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h
index 64daadcea..4eca0cc03 100644
--- a/src/include/gnunet_core_service.h
+++ b/src/include/gnunet_core_service.h
@@ -292,6 +292,24 @@ GNUNET_CORE_is_peer_connected_sync (const struct GNUNET_CORE_Handle *h,
292 const struct GNUNET_PeerIdentity *pid); 292 const struct GNUNET_PeerIdentity *pid);
293 293
294 294
295/**
296 * Create a message queue for sending messages to a peer with CORE.
297 * Messages may only be queued with #GNUNET_MQ_send once the init callback has
298 * been called for the given handle.
299 * There must only be one queue per peer for each core handle.
300 * The message queue can only be used to transmit messages,
301 * not to receive them.
302 *
303 * @param h the core handle
304 * @param target the target peer for this queue, may not be NULL
305 * @return a message queue for sending messages over the core handle
306 * to the target peer
307 */
308struct GNUNET_MQ_Handle *
309GNUNET_CORE_mq_create (struct GNUNET_CORE_Handle *h,
310 const struct GNUNET_PeerIdentity *target);
311
312
295#if 0 /* keep Emacsens' auto-indent happy */ 313#if 0 /* keep Emacsens' auto-indent happy */
296{ 314{
297#endif 315#endif