aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_peer.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2014-07-21 00:15:21 +0000
committerBart Polot <bart@net.in.tum.de>2014-07-21 00:15:21 +0000
commitcd806ab8dc55774a64ed25b453757f2d9569535f (patch)
tree198ebbc252ff29b35fcf600b48e3b2e1db8fab1e /src/cadet/gnunet-service-cadet_peer.h
parent5e6a45f88f934e01e25c4042ada3ec7964572e8f (diff)
downloadgnunet-cd806ab8dc55774a64ed25b453757f2d9569535f.tar.gz
gnunet-cd806ab8dc55774a64ed25b453757f2d9569535f.zip
- doxygen, code formatting
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h
index 240e70526..b7297d101 100644
--- a/src/cadet/gnunet-service-cadet_peer.h
+++ b/src/cadet/gnunet-service-cadet_peer.h
@@ -169,6 +169,10 @@ GCP_queue_cancel (struct CadetPeer *peer, struct CadetConnection *c);
169/** 169/**
170 * Get the first message for a connection and unqueue it. 170 * Get the first message for a connection and unqueue it.
171 * 171 *
172 * If the message was the last in the connection and the destruction flag
173 * was set, the connection will be freed by the continuation called by this
174 * function, and @c c will be INVALID after the call.
175 *
172 * @param peer Neighboring peer. 176 * @param peer Neighboring peer.
173 * @param c Connection. 177 * @param c Connection.
174 * 178 *
@@ -177,6 +181,16 @@ GCP_queue_cancel (struct CadetPeer *peer, struct CadetConnection *c);
177struct GNUNET_MessageHeader * 181struct GNUNET_MessageHeader *
178GCP_connection_pop (struct CadetPeer *peer, struct CadetConnection *c); 182GCP_connection_pop (struct CadetPeer *peer, struct CadetConnection *c);
179 183
184/**
185 * Unlock a possibly locked queue for a connection.
186 *
187 * If there is a message that can be sent on this connection, call core for it.
188 * Otherwise (if core transmit is already called or there is no sendable
189 * message) do nothing.
190 *
191 * @param peer Peer who keeps the queue.
192 * @param c Connection whose messages to unlock.
193 */
180void 194void
181GCP_queue_unlock (struct CadetPeer *peer, struct CadetConnection *c); 195GCP_queue_unlock (struct CadetPeer *peer, struct CadetConnection *c);
182 196