libcoap  4.0.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator 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
unsigned char separator
 segment separators
unsigned char * delim
 delimiters where to split the string
size_t dlen
 length of separator
unsigned char * pos
 current position in buffer
size_t segment_length
 length of current segment

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: