What to call for a job added with GNUNET_CURL_job_add_stream(). More...
#include <gnunet_curl_lib.h>
Data Fields | |
| GNUNET_CURL_StreamHeaderCallback | hcb |
| Called per response header line, or NULL if the caller does not want them. | |
| void * | hcb_cls |
| Closure for hcb. | |
| GNUNET_CURL_StreamCallback | scb |
| Called per chunk of response body. | |
| void * | scb_cls |
| Closure for scb. | |
| GNUNET_CURL_RawJobCompletionCallback | jcc |
| Called once the transfer has ended, successfully or not. | |
| void * | jcc_cls |
| Closure for jcc. | |
What to call for a job added with GNUNET_CURL_job_add_stream().
Definition at line 281 of file gnunet_curl_lib.h.
| GNUNET_CURL_StreamHeaderCallback GNUNET_CURL_StreamHandlers::hcb |
Called per response header line, or NULL if the caller does not want them.
Definition at line 287 of file gnunet_curl_lib.h.
| void* GNUNET_CURL_StreamHandlers::hcb_cls |
Closure for hcb.
Definition at line 292 of file gnunet_curl_lib.h.
| GNUNET_CURL_StreamCallback GNUNET_CURL_StreamHandlers::scb |
| void* GNUNET_CURL_StreamHandlers::scb_cls |
Closure for scb.
Definition at line 302 of file gnunet_curl_lib.h.
| GNUNET_CURL_RawJobCompletionCallback GNUNET_CURL_StreamHandlers::jcc |
Called once the transfer has ended, successfully or not.
Mandatory. The body arguments are always NULL and 0: the body was delivered to scb as it arrived and nothing was retained.
A response code of 0 means the transfer failed, including when it failed after the status line had been read and relayed — a chunked response cut off before its terminating chunk, say. That is deliberately not reported as the status the server sent: for a streaming consumer the status is old news, and whether the body behind it is complete is the only thing left to learn. A caller that has already committed to a status knows it has, and can tell "never got there" from "got cut off" on that basis.
Definition at line 318 of file gnunet_curl_lib.h.
| void* GNUNET_CURL_StreamHandlers::jcc_cls |
Closure for jcc.
Definition at line 323 of file gnunet_curl_lib.h.