aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_client_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_client_lib.h')
-rw-r--r--src/include/gnunet_client_lib.h35
1 files changed, 17 insertions, 18 deletions
diff --git a/src/include/gnunet_client_lib.h b/src/include/gnunet_client_lib.h
index 41dbe4efc..343960426 100644
--- a/src/include/gnunet_client_lib.h
+++ b/src/include/gnunet_client_lib.h
@@ -68,7 +68,7 @@ struct GNUNET_CLIENT_Connection *GNUNET_CLIENT_connect (const char
68 */ 68 */
69void 69void
70GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h, 70GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h,
71 int do_ignore); 71 int do_ignore);
72 72
73 73
74 74
@@ -88,7 +88,7 @@ GNUNET_CLIENT_ignore_shutdown (struct GNUNET_CLIENT_Connection *h,
88 * handle be completed? 88 * handle be completed?
89 */ 89 */
90void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock, 90void GNUNET_CLIENT_disconnect (struct GNUNET_CLIENT_Connection *sock,
91 int finish_pending_write); 91 int finish_pending_write);
92 92
93/** 93/**
94 * Type of a function to call when we receive a message 94 * Type of a function to call when we receive a message
@@ -111,8 +111,7 @@ typedef void (*GNUNET_CLIENT_MessageHandler) (void *cls,
111 * GNUNET_YES on running 111 * GNUNET_YES on running
112 * GNUNET_SYSERR on failure to transmit message 112 * GNUNET_SYSERR on failure to transmit message
113 */ 113 */
114typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls, 114typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls, int reason);
115 int reason);
116 115
117/** 116/**
118 * Read from the service. 117 * Read from the service.
@@ -125,7 +124,7 @@ typedef void (*GNUNET_CLIENT_ShutdownTask) (void *cls,
125void GNUNET_CLIENT_receive (struct GNUNET_CLIENT_Connection *sock, 124void GNUNET_CLIENT_receive (struct GNUNET_CLIENT_Connection *sock,
126 GNUNET_CLIENT_MessageHandler handler, 125 GNUNET_CLIENT_MessageHandler handler,
127 void *handler_cls, 126 void *handler_cls,
128 struct GNUNET_TIME_Relative timeout); 127 struct GNUNET_TIME_Relative timeout);
129 128
130 129
131/** 130/**
@@ -155,13 +154,12 @@ struct GNUNET_CLIENT_TransmitHandle;
155 * using GNUNET_CONNECTION_notify_transmit_ready_cancel) 154 * using GNUNET_CONNECTION_notify_transmit_ready_cancel)
156 */ 155 */
157struct GNUNET_CLIENT_TransmitHandle 156struct GNUNET_CLIENT_TransmitHandle
158 *GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock, 157 *GNUNET_CLIENT_notify_transmit_ready (struct GNUNET_CLIENT_Connection *sock,
159 size_t size, 158 size_t size,
160 struct GNUNET_TIME_Relative timeout, 159 struct GNUNET_TIME_Relative timeout,
161 int auto_retry, 160 int auto_retry,
162 GNUNET_CONNECTION_TransmitReadyNotify 161 GNUNET_CONNECTION_TransmitReadyNotify
163 notify, 162 notify, void *notify_cls);
164 void *notify_cls);
165 163
166 164
167/** 165/**
@@ -170,7 +168,8 @@ struct GNUNET_CLIENT_TransmitHandle
170 * @param th handle from the original request. 168 * @param th handle from the original request.
171 */ 169 */
172void 170void
173GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle *th); 171GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle
172 *th);
174 173
175 174
176/** 175/**
@@ -196,11 +195,11 @@ GNUNET_CLIENT_notify_transmit_ready_cancel (struct GNUNET_CLIENT_TransmitHandle
196 */ 195 */
197int 196int
198GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection *sock, 197GNUNET_CLIENT_transmit_and_get_response (struct GNUNET_CLIENT_Connection *sock,
199 const struct GNUNET_MessageHeader *hdr, 198 const struct GNUNET_MessageHeader *hdr,
200 struct GNUNET_TIME_Relative timeout, 199 struct GNUNET_TIME_Relative timeout,
201 int auto_retry, 200 int auto_retry,
202 GNUNET_CLIENT_MessageHandler rn, 201 GNUNET_CLIENT_MessageHandler rn,
203 void *rn_cls); 202 void *rn_cls);
204 203
205 204
206/** 205/**