_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...
OsTaskId taskId
 Task identifier. More...
OsTaskTcb taskTcb
 Task control block. More...
OsStackType taskStack [COAP_SERVER_STACK_SIZE]
 Task stack. More...
 Underlying socket. More...
IpAddr serverIpAddr
 Server's IP address. More...
IpAddr clientIpAddr
 Client's IP address. More...
uint16_t clientPort
 Client's port. More...
 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 190 of file coap_server.h.

Field Documentation

◆ buffer


Memory buffer for input/output operations.

Definition at line 210 of file coap_server.h.

◆ bufferLen

size_t bufferLen

Length of the buffer, in bytes.

Definition at line 211 of file coap_server.h.

◆ clientIpAddr

IpAddr clientIpAddr

Client's IP address.

Definition at line 203 of file coap_server.h.

◆ clientPort

uint16_t clientPort

Client's port.

Definition at line 204 of file coap_server.h.

◆ cookieSecret


Cookie secret.

Definition at line 206 of file coap_server.h.

◆ cookieSecretLen

size_t cookieSecretLen

Length of the cookie secret, in bytes.

Definition at line 207 of file coap_server.h.

◆ event

OsEvent event

Event object used to poll the underlying socket.

Definition at line 195 of file coap_server.h.

◆ request

CoapMessage request

CoAP request message.

Definition at line 213 of file coap_server.h.

◆ response

CoapMessage response

CoAP response message.

Definition at line 214 of file coap_server.h.

◆ running

bool_t running

Operational state of the CoAP server.

Definition at line 193 of file coap_server.h.

◆ serverIpAddr

IpAddr serverIpAddr

Server's IP address.

Definition at line 202 of file coap_server.h.

◆ session

DTLS sessions.

Definition at line 208 of file coap_server.h.

◆ settings

User settings.

Definition at line 192 of file coap_server.h.

◆ socket

Socket* socket

Underlying socket.

Definition at line 201 of file coap_server.h.

◆ stop

bool_t stop

Stop request.

Definition at line 194 of file coap_server.h.

◆ taskId

OsTaskId taskId

Task identifier.

Definition at line 196 of file coap_server.h.

◆ taskStack

Task stack.

Definition at line 199 of file coap_server.h.

◆ taskTcb

OsTaskTcb taskTcb

Task control block.

Definition at line 198 of file coap_server.h.

◆ uri

Resource identifier.

Definition at line 212 of file coap_server.h.

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