libcoap
4.1.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
•
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Groups
Pages
s.c
Go to the documentation of this file.
1
#include <stdio.h>
2
3
typedef
struct
{
4
unsigned
int
version:2;
/* protocol version */
5
unsigned
int
type:2;
/* type flag */
6
unsigned
int
token_length:4;
/* length of Token */
7
unsigned
int
code:8;
/* request method (value 1--10) or response code (value 40-255) */
8
unsigned
short
id
;
/* message id */
9
unsigned
char
token[];
/* the actual token, if any */
10
}
coap_hdr_t
;
11
12
int
main
() {
13
printf(
"%zu\n"
,
sizeof
(
coap_hdr_t
));
14
15
return
0;
16
}
Generated on Wed Feb 5 2014 15:10:20 for libcoap by
1.8.4