nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
download_client Struct Reference

Download client instance. More...

#include <download_client.h>

Public Types

enum  {
  DOWNLOAD_CLIENT_IDLE , DOWNLOAD_CLIENT_CONNECTING , DOWNLOAD_CLIENT_DOWNLOADING , DOWNLOAD_CLIENT_FINISHED ,
  DOWNLOAD_CLIENT_CLOSING
}
 

Public Member Functions

 K_THREAD_STACK_MEMBER (thread_stack, CONFIG_DOWNLOAD_CLIENT_STACK_SIZE)
 

Data Fields

struct k_mutex mutex
 
int fd
 
struct sockaddr remote_addr
 
char buf [CONFIG_DOWNLOAD_CLIENT_BUF_SIZE]
 
size_t offset
 
size_t file_size
 
size_t progress
 
const char * host
 
const char * file
 
struct download_client_cfg config
 
int proto
 
struct {
   bool   has_header
 
   bool   connection_close
 
   bool   ranged
 
http
 
struct {
   struct coap_block_context   block_ctx
 
   struct coap_pending   pending
 
coap
 
k_tid_t tid
 
struct k_thread thread
 
struct k_sem wait_for_download
 
download_client_callback_t callback
 
bool set_native_tls
 
bool close_when_done
 
enum download_client:: { ... }  state
 

Detailed Description

Download client instance.


The documentation for this struct was generated from the following file: