aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/gnunet-service-cadet_peer.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-10-06 12:03:14 +0000
committerBart Polot <bart@net.in.tum.de>2015-10-06 12:03:14 +0000
commit79f53fe65e00a29889b290fca9c9390101ea537e (patch)
treee169fc09e181acc9d73cc51f224bbbc3898564cf /src/cadet/gnunet-service-cadet_peer.h
parentc3c8597a4ce377b7825e4a526b7de1daeba2105d (diff)
downloadgnunet-79f53fe65e00a29889b290fca9c9390101ea537e.tar.gz
gnunet-79f53fe65e00a29889b290fca9c9390101ea537e.zip
- Revamp traffic logging, small bugfixes, complete doxygen
Diffstat (limited to 'src/cadet/gnunet-service-cadet_peer.h')
-rw-r--r--src/cadet/gnunet-service-cadet_peer.h22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/cadet/gnunet-service-cadet_peer.h b/src/cadet/gnunet-service-cadet_peer.h
index 65704f9c4..c053820ff 100644
--- a/src/cadet/gnunet-service-cadet_peer.h
+++ b/src/cadet/gnunet-service-cadet_peer.h
@@ -170,9 +170,13 @@ GCP_queue_destroy (struct CadetPeerQueue *queue, int clear_cls,
170 * @param peer Peer towards which to queue the message. 170 * @param peer Peer towards which to queue the message.
171 * @param cls Closure (@c type dependant). It will be used by queue_send to 171 * @param cls Closure (@c type dependant). It will be used by queue_send to
172 * build the message to be sent if not already prebuilt. 172 * build the message to be sent if not already prebuilt.
173 * @param type Type of the message, 0 for a raw message. 173 * @param type Type of the message.
174 * @param payload_type Type of the message's payload
175 * 0 if the message is a retransmission (unknown payload).
176 * UINT16_MAX if the message does not have payload.
177 * @param payload_id ID of the payload (MID, ACK #, etc)
174 * @param size Size of the message. 178 * @param size Size of the message.
175 * @param c Connection this message belongs to (cannot be NULL). 179 * @param c Connection this message belongs to (can be NULL).
176 * @param fwd Is this a message going root->dest? (FWD ACK are NOT FWD!) 180 * @param fwd Is this a message going root->dest? (FWD ACK are NOT FWD!)
177 * @param cont Continuation to be called once CORE has taken the message. 181 * @param cont Continuation to be called once CORE has taken the message.
178 * @param cont_cls Closure for @c cont. 182 * @param cont_cls Closure for @c cont.
@@ -181,10 +185,16 @@ GCP_queue_destroy (struct CadetPeerQueue *queue, int clear_cls,
181 * message has been sent and therefore the handle is no longer valid. 185 * message has been sent and therefore the handle is no longer valid.
182 */ 186 */
183struct CadetPeerQueue * 187struct CadetPeerQueue *
184GCP_queue_add (struct CadetPeer *peer, void *cls, uint16_t type, 188GCP_queue_add (struct CadetPeer *peer,
185 uint16_t payload_type, uint32_t payload_id, 189 void *cls,
186 size_t size, struct CadetConnection *c, int fwd, 190 uint16_t type,
187 GCP_sent cont, void *cont_cls); 191 uint16_t payload_type,
192 uint32_t payload_id,
193 size_t size,
194 struct CadetConnection *c,
195 int fwd,
196 GCP_sent cont,
197 void *cont_cls);
188 198
189/** 199/**
190 * Cancel all queued messages to a peer that belong to a certain connection. 200 * Cancel all queued messages to a peer that belong to a certain connection.