libcoap  4.1.1
 All Data Structures Files Functions Variables Typedefs Macros Groups Pages
Data Fields
coap_parse_iterator_t Struct Reference

Iterator to for tokenizing a URI path or query. More...

#include <uri.h>

Data Fields

size_t n
 number of remaining characters in buffer More...
 
unsigned char separator
 segment separators More...
 
unsigned char * delim
 delimiters where to split the string More...
 
size_t dlen
 length of separator More...
 
unsigned char * pos
 current position in buffer More...
 
size_t segment_length
 length of current segment More...
 

Detailed Description

Iterator to for tokenizing a URI path or query.

This structure must be initialized with coap_parse_iterator_init(). Call coap_parse_next() to walk through the tokens.

unsigned char *token;
while ((token = coap_parse_next(&pi))) {
... do something with token ...
}

Definition at line 78 of file uri.h.

Field Documentation

unsigned char* coap_parse_iterator_t::delim

delimiters where to split the string

Definition at line 81 of file uri.h.

size_t coap_parse_iterator_t::dlen

length of separator

Definition at line 82 of file uri.h.

size_t coap_parse_iterator_t::n

number of remaining characters in buffer

Definition at line 79 of file uri.h.

unsigned char* coap_parse_iterator_t::pos

current position in buffer

Definition at line 83 of file uri.h.

size_t coap_parse_iterator_t::segment_length

length of current segment

Definition at line 84 of file uri.h.

unsigned char coap_parse_iterator_t::separator

segment separators

Definition at line 80 of file uri.h.


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