10#ifndef ANJAY_INCLUDE_ANJAY_DOWNLOAD_H
11#define ANJAY_INCLUDE_ANJAY_DOWNLOAD_H
16#include <avsystem/commons/avs_net.h>
296 size_t next_block_offset);
struct anjay_struct anjay_t
Definition core.h:45
int anjay_download_reconnect(anjay_t *anjay, anjay_download_handle_t dl_handle)
avs_error_t anjay_download_set_next_block_offset(anjay_t *anjay, anjay_download_handle_t dl_handle, size_t next_block_offset)
void * anjay_download_handle_t
Definition download.h:211
void anjay_download_abort(anjay_t *anjay, anjay_download_handle_t dl_handle)
void anjay_download_suspend(anjay_t *anjay, anjay_download_handle_t dl_handle)
void anjay_download_finished_handler_t(anjay_t *anjay, anjay_download_status_t status, void *user_data)
Definition download.h:141
anjay_download_result
Definition download.h:78
@ ANJAY_DOWNLOAD_ERR_ABORTED
Definition download.h:89
@ ANJAY_DOWNLOAD_ERR_INVALID_RESPONSE
Definition download.h:85
@ ANJAY_DOWNLOAD_ERR_FAILED
Definition download.h:82
@ ANJAY_DOWNLOAD_FINISHED
Definition download.h:80
@ ANJAY_DOWNLOAD_ERR_EXPIRED
Definition download.h:87
avs_error_t anjay_download_next_block_handler_t(anjay_t *anjay, const uint8_t *data, size_t data_size, const anjay_etag_t *etag, void *user_data)
Definition download.h:72
anjay_etag_t * anjay_etag_new(uint8_t etag_size)
struct anjay_etag anjay_etag_t
struct anjay_download_config anjay_download_config_t
avs_error_t anjay_download(anjay_t *anjay, const anjay_download_config_t *config, anjay_download_handle_t *out_handle)
anjay_etag_t * anjay_etag_clone(const anjay_etag_t *old_etag)
enum anjay_download_result anjay_download_result_t
Definition download.h:145
void * user_data
Definition download.h:169
size_t start_offset
Definition download.h:154
const anjay_etag_t * etag
Definition download.h:160
bool prefer_same_socket_downloads
Definition download.h:208
avs_time_duration_t tcp_request_timeout
Definition download.h:198
anjay_download_next_block_handler_t * on_next_block
Definition download.h:163
anjay_download_finished_handler_t * on_download_finished
Definition download.h:166
anjay_security_config_t security_config
Definition download.h:179
avs_coap_udp_tx_params_t * coap_tx_params
Definition download.h:185
const char * url
Definition download.h:147
anjay_download_result_t result
Definition download.h:93
avs_error_t error
Definition download.h:116
int status_code
Definition download.h:128
uint8_t value[1]
Definition download.h:28
uint8_t size
Definition download.h:27