aboutsummaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core_sessions.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-10-07 14:56:07 +0000
committerChristian Grothoff <christian@grothoff.org>2011-10-07 14:56:07 +0000
commit4c5201417431a8cb700dab32e339ded3d7363156 (patch)
tree494f84d2137d15a6818208a5519bd4fcc0fcbe01 /src/core/gnunet-service-core_sessions.h
parent127cddf66adb99459a5d0ad2f7cafc5c18c27879 (diff)
downloadgnunet-4c5201417431a8cb700dab32e339ded3d7363156.tar.gz
gnunet-4c5201417431a8cb700dab32e339ded3d7363156.zip
hxing
Diffstat (limited to 'src/core/gnunet-service-core_sessions.h')
-rw-r--r--src/core/gnunet-service-core_sessions.h48
1 files changed, 25 insertions, 23 deletions
diff --git a/src/core/gnunet-service-core_sessions.h b/src/core/gnunet-service-core_sessions.h
index 46f8d1f5c..787a431ee 100644
--- a/src/core/gnunet-service-core_sessions.h
+++ b/src/core/gnunet-service-core_sessions.h
@@ -31,6 +31,28 @@
31 31
32 32
33/** 33/**
34 * Create a session, a key exchange was just completed.
35 *
36 * @param peer peer that is now connected
37 * @param kx key exchange that completed
38 */
39void
40GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
41 struct GSC_KeyExchangeInfo *kx);
42
43
44/**
45 * Update information about a session.
46 *
47 * @param peer peer who's session should be updated
48 * @param bw_out new outbound bandwidth limit for the peer
49 */
50void
51GSC_SESSIONS_update (const struct GNUNET_PeerIdentity *peer,
52 struct GNUNET_BANDWIDTH_Value32NBO bw_out);
53
54
55/**
34 * End the session with the given peer (we are no longer 56 * End the session with the given peer (we are no longer
35 * connected). 57 * connected).
36 * 58 *
@@ -80,10 +102,12 @@ GSC_SESSIONS_dequeue_request (struct GSC_ClientActiveRequest *car);
80 * @param car original request that was queued and then solicited, 102 * @param car original request that was queued and then solicited,
81 * ownership does not change (dequeue will be called soon). 103 * ownership does not change (dequeue will be called soon).
82 * @param msg message to transmit 104 * @param msg message to transmit
105 * @param cork is corking allowed?
83 */ 106 */
84void 107void
85GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car, 108GSC_SESSIONS_transmit (struct GSC_ClientActiveRequest *car,
86 const struct GNUNET_MessageHeader *msg); 109 const struct GNUNET_MessageHeader *msg,
110 int cork);
87 111
88 112
89/** 113/**
@@ -147,28 +171,6 @@ GSC_SESSIONS_handle_client_request_info (void *cls, struct GNUNET_SERVER_Client
147 171
148 172
149/** 173/**
150 * Create a session, a key exchange was just completed.
151 *
152 * @param peer peer that is now connected
153 * @param kx key exchange that completed
154 */
155void
156GSC_SESSIONS_create (const struct GNUNET_PeerIdentity *peer,
157 struct GSC_KeyExchangeInfo *kx);
158
159
160/**
161 * Update information about a session.
162 *
163 * @param peer peer who's session should be updated
164 * @param bw_out new outbound bandwidth limit for the peer
165 */
166void
167GSC_SESSIONS_update (const struct GNUNET_PeerIdentity *peer,
168 struct GNUNET_BANDWIDTH_Value32NBO bw_out);
169
170
171/**
172 * Initialize sessions subsystem. 174 * Initialize sessions subsystem.
173 */ 175 */
174void 176void