_CoapServerContext Struct Reference

CoAP server context. More...

#include <coap_server.h>

Data Fields

CoapServerSettings settings
 User settings. More...
 
bool_t running
 Operational state of the CoAP server. More...
 
bool_t stop
 Stop request. More...
 
OsEvent event
 Event object used to poll the underlying socket. More...
 
OsTaskParameters taskParams
 Task parameters. More...
 
OsTaskId taskId
 Task identifier. More...
 
Socketsocket
 Underlying socket. More...
 
IpAddr serverIpAddr
 Server's IP address. More...
 
IpAddr clientIpAddr
 Client's IP address. More...
 
uint16_t clientPort
 Client's port. More...
 
uint8_t cookieSecret [COAP_SERVER_MAX_COOKIE_SECRET_SIZE]
 Cookie secret. More...
 
size_t cookieSecretLen
 Length of the cookie secret, in bytes. More...
 
CoapDtlsSession session [COAP_SERVER_MAX_SESSIONS]
 DTLS sessions. More...
 
uint8_t buffer [COAP_SERVER_BUFFER_SIZE]
 Memory buffer for input/output operations. More...
 
size_t bufferLen
 Length of the buffer, in bytes. More...
 
char_t uri [COAP_SERVER_MAX_URI_LEN+1]
 Resource identifier. More...
 
CoapMessage request
 CoAP request message. More...
 
CoapMessage response
 CoAP response message. More...
 

Detailed Description

CoAP server context.

Definition at line 200 of file coap_server.h.

Field Documentation

◆ buffer

uint8_t buffer[COAP_SERVER_BUFFER_SIZE]

Memory buffer for input/output operations.

Definition at line 217 of file coap_server.h.

◆ bufferLen

size_t bufferLen

Length of the buffer, in bytes.

Definition at line 218 of file coap_server.h.

◆ clientIpAddr

IpAddr clientIpAddr

Client's IP address.

Definition at line 210 of file coap_server.h.

◆ clientPort

uint16_t clientPort

Client's port.

Definition at line 211 of file coap_server.h.

◆ cookieSecret

uint8_t cookieSecret[COAP_SERVER_MAX_COOKIE_SECRET_SIZE]

Cookie secret.

Definition at line 213 of file coap_server.h.

◆ cookieSecretLen

size_t cookieSecretLen

Length of the cookie secret, in bytes.

Definition at line 214 of file coap_server.h.

◆ event

OsEvent event

Event object used to poll the underlying socket.

Definition at line 205 of file coap_server.h.

◆ request

CoapMessage request

CoAP request message.

Definition at line 220 of file coap_server.h.

◆ response

CoapMessage response

CoAP response message.

Definition at line 221 of file coap_server.h.

◆ running

bool_t running

Operational state of the CoAP server.

Definition at line 203 of file coap_server.h.

◆ serverIpAddr

IpAddr serverIpAddr

Server's IP address.

Definition at line 209 of file coap_server.h.

◆ session

DTLS sessions.

Definition at line 215 of file coap_server.h.

◆ settings

User settings.

Definition at line 202 of file coap_server.h.

◆ socket

Socket* socket

Underlying socket.

Definition at line 208 of file coap_server.h.

◆ stop

bool_t stop

Stop request.

Definition at line 204 of file coap_server.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 207 of file coap_server.h.

◆ taskParams

OsTaskParameters taskParams

Task parameters.

Definition at line 206 of file coap_server.h.

◆ uri

Resource identifier.

Definition at line 219 of file coap_server.h.


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