libcoap 4.3.2rc2

Data Fields
coap_lg_srcv_t Struct Reference
Libcoap Internal API » Block Transfer

Structure to hold large body (many blocks) server receive information. More...

`#include <coap_block_internal.h>`

## Data Fields
struct coap_lg_srcv_t * | next
uint8_t | observe [3]
| Observe data (if set) (only 24 bits) More...
uint8_t | observe_length
| Length of observe data. More...
uint8_t | observe_set
| Set if this is an observe receive PDU. More...
uint8_t | rtag_set
| Set if RTag is in receive PDU. More...
uint8_t | rtag_length
| RTag length. More...
uint8_t | rtag [8]
| RTag for block checking. More...
uint16_t | content_format
| Content format for the set of blocks. More...
uint8_t | last_type
| Last request type (CON/NON) More...
uint8_t | szx
| size of individual blocks More...
size_t | total_len
| Length as indicated by SIZE1 option. More...
coap_binary_t * | body_data
| Used for re-assembling entire body. More...
size_t | amount_so_far
| Amount of data seen so far. More...
coap_resource_t * | resource
| associated resource More...
coap_str_const_t * | uri_path
coap_rblock_t | rec_blocks
| set to uri_path if unknown resource More...
coap_mid_t | last_mid
| < list of received blocks More...
coap_tick_t | last_used
| Last time data sent or 0. More...
uint16_t | block_option
| Block option in use. More...

## Detailed Description

Structure to hold large body (many blocks) server receive information.

Definition at line 177 of file coap_block_internal.h.

## Field Documentation

## ◆ amount_so_far

size_t coap_lg_srcv_t::amount_so_far

Amount of data seen so far.

Definition at line 190 of file coap_block_internal.h.

## ◆ block_option

uint16_t coap_lg_srcv_t::block_option

Block option in use.

Definition at line 199 of file coap_block_internal.h.

## ◆ body_data

coap_binary_t* coap_lg_srcv_t::body_data

Used for re-assembling entire body.

Definition at line 189 of file coap_block_internal.h.

## ◆ content_format

uint16_t coap_lg_srcv_t::content_format

Content format for the set of blocks.

Definition at line 185 of file coap_block_internal.h.

## ◆ last_mid

coap_mid_t coap_lg_srcv_t::last_mid

< list of received blocks

Last received mid for this set of packets

Definition at line 197 of file coap_block_internal.h.

## ◆ last_type

uint8_t coap_lg_srcv_t::last_type

Last request type (CON/NON)

Definition at line 186 of file coap_block_internal.h.

## ◆ last_used

coap_tick_t coap_lg_srcv_t::last_used

Last time data sent or 0.

Definition at line 198 of file coap_block_internal.h.

## ◆ next

struct coap_lg_srcv_t* coap_lg_srcv_t::next

Definition at line 178 of file coap_block_internal.h.

## ◆ observe

uint8_t coap_lg_srcv_t::observe[3]

Observe data (if set) (only 24 bits)

Definition at line 179 of file coap_block_internal.h.

## ◆ observe_length

uint8_t coap_lg_srcv_t::observe_length

Length of observe data.

Definition at line 180 of file coap_block_internal.h.

## ◆ observe_set

uint8_t coap_lg_srcv_t::observe_set

Set if this is an observe receive PDU.

Definition at line 181 of file coap_block_internal.h.

## ◆ rec_blocks

coap_rblock_t coap_lg_srcv_t::rec_blocks

set to uri_path if unknown resource

Definition at line 193 of file coap_block_internal.h.

## ◆ resource

coap_resource_t* coap_lg_srcv_t::resource

associated resource

Definition at line 191 of file coap_block_internal.h.

## ◆ rtag

uint8_t coap_lg_srcv_t::rtag[8]

RTag for block checking.

Definition at line 184 of file coap_block_internal.h.

## ◆ rtag_length

uint8_t coap_lg_srcv_t::rtag_length

RTag length.

Definition at line 183 of file coap_block_internal.h.

## ◆ rtag_set

uint8_t coap_lg_srcv_t::rtag_set

Set if RTag is in receive PDU.

Definition at line 182 of file coap_block_internal.h.

## ◆ szx

uint8_t coap_lg_srcv_t::szx

size of individual blocks

Definition at line 187 of file coap_block_internal.h.

## ◆ total_len

size_t coap_lg_srcv_t::total_len

Length as indicated by SIZE1 option.

Definition at line 188 of file coap_block_internal.h.

## ◆ uri_path

coap_str_const_t* coap_lg_srcv_t::uri_path

Definition at line 192 of file coap_block_internal.h.

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

- coap_block_internal.h