CoAP server context. More...
#include <coap_server.h>
Data Fields | |
| NetContext * | netContext |
| TCP/IP stack context. More... | |
| NetInterface * | interface |
| Underlying network interface. More... | |
| uint16_t | port |
| CoAP port number. More... | |
| uint_t | numSessions |
| Maximum number of DTLS sessions. More... | |
| CoapDtlsSession * | sessions |
| DTLS sessions. More... | |
| uint_t | numResources |
| Maximum number of observable resources. More... | |
| CoapResource * | resources |
| List of observable resources. More... | |
| uint_t | numObservers |
| Maximum number of observers. More... | |
| CoapObserver * | observers |
| List of registered observers. More... | |
| CoapServerUdpInitCallback | udpInitCallback |
| UDP initialization callback. More... | |
| CoapServerDtlsInitCallback | dtlsInitCallback |
| DTLS initialization callback. More... | |
| CoapServerRequestCallback | requestCallback |
| CoAP request callback. More... | |
| CoapServerObserveCallback | observeCallback |
| Observe callback. More... | |
| bool_t | running |
| Operational state of the CoAP server. More... | |
| bool_t | stop |
| Stop request. More... | |
| OsMutex | mutex |
| Mutex preventing simultaneous access to the context. More... | |
| OsEvent | event |
| Event object used to poll the underlying socket. More... | |
| OsTaskParameters | taskParams |
| Task parameters. More... | |
| OsTaskId | taskId |
| Task identifier. More... | |
| Socket * | socket |
| Underlying socket. More... | |
| NetInterface * | localInterface |
| Network interface the CoAP request was received on. More... | |
| IpAddr | localIpAddr |
| Destination IP address of the received CoAP request. More... | |
| IpAddr | remoteIpAddr |
| Source IP address of the received CoAP request. More... | |
| uint16_t | remotePort |
| Source port of the received CoAP request. 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... | |
| uint8_t | cookieSecret [COAP_SERVER_MAX_COOKIE_SECRET_SIZE] |
| Cookie secret. More... | |
| size_t | cookieSecretLen |
| Length of the cookie secret, in bytes. More... | |
| TlsTicketContext | dtlsTicketContext |
| DTLS ticket encryption context. More... | |
| uint16_t | mid |
| Message identifier. More... | |
Detailed Description
CoAP server context.
Definition at line 268 of file coap_server.h.
Field Documentation
◆ buffer
| uint8_t buffer[COAP_SERVER_BUFFER_SIZE] |
Memory buffer for input/output operations.
Definition at line 302 of file coap_server.h.
◆ bufferLen
| size_t bufferLen |
Length of the buffer, in bytes.
Definition at line 303 of file coap_server.h.
◆ cookieSecret
| uint8_t cookieSecret[COAP_SERVER_MAX_COOKIE_SECRET_SIZE] |
Cookie secret.
Definition at line 308 of file coap_server.h.
◆ cookieSecretLen
| size_t cookieSecretLen |
Length of the cookie secret, in bytes.
Definition at line 309 of file coap_server.h.
◆ dtlsInitCallback
| CoapServerDtlsInitCallback dtlsInitCallback |
DTLS initialization callback.
Definition at line 285 of file coap_server.h.
◆ dtlsTicketContext
| TlsTicketContext dtlsTicketContext |
DTLS ticket encryption context.
Definition at line 312 of file coap_server.h.
◆ event
| OsEvent event |
Event object used to poll the underlying socket.
Definition at line 294 of file coap_server.h.
◆ interface
| NetInterface* interface |
Underlying network interface.
Definition at line 271 of file coap_server.h.
◆ localInterface
| NetInterface* localInterface |
Network interface the CoAP request was received on.
Definition at line 298 of file coap_server.h.
◆ localIpAddr
| IpAddr localIpAddr |
Destination IP address of the received CoAP request.
Definition at line 299 of file coap_server.h.
◆ mid
| uint16_t mid |
Message identifier.
Definition at line 315 of file coap_server.h.
◆ mutex
| OsMutex mutex |
Mutex preventing simultaneous access to the context.
Definition at line 293 of file coap_server.h.
◆ netContext
| NetContext* netContext |
TCP/IP stack context.
Definition at line 270 of file coap_server.h.
◆ numObservers
| uint_t numObservers |
Maximum number of observers.
Definition at line 280 of file coap_server.h.
◆ numResources
| uint_t numResources |
Maximum number of observable resources.
Definition at line 278 of file coap_server.h.
◆ numSessions
| uint_t numSessions |
Maximum number of DTLS sessions.
Definition at line 274 of file coap_server.h.
◆ observeCallback
| CoapServerObserveCallback observeCallback |
Observe callback.
Definition at line 289 of file coap_server.h.
◆ observers
| CoapObserver* observers |
List of registered observers.
Definition at line 281 of file coap_server.h.
◆ port
| uint16_t port |
CoAP port number.
Definition at line 272 of file coap_server.h.
◆ remoteIpAddr
| IpAddr remoteIpAddr |
Source IP address of the received CoAP request.
Definition at line 300 of file coap_server.h.
◆ remotePort
| uint16_t remotePort |
Source port of the received CoAP request.
Definition at line 301 of file coap_server.h.
◆ request
| CoapMessage request |
CoAP request message.
Definition at line 305 of file coap_server.h.
◆ requestCallback
| CoapServerRequestCallback requestCallback |
CoAP request callback.
Definition at line 287 of file coap_server.h.
◆ resources
| CoapResource* resources |
List of observable resources.
Definition at line 279 of file coap_server.h.
◆ response
| CoapMessage response |
CoAP response message.
Definition at line 306 of file coap_server.h.
◆ running
| bool_t running |
Operational state of the CoAP server.
Definition at line 291 of file coap_server.h.
◆ sessions
| CoapDtlsSession* sessions |
DTLS sessions.
Definition at line 275 of file coap_server.h.
◆ socket
| Socket* socket |
Underlying socket.
Definition at line 297 of file coap_server.h.
◆ stop
| bool_t stop |
Stop request.
Definition at line 292 of file coap_server.h.
◆ taskId
| OsTaskId taskId |
Task identifier.
Definition at line 296 of file coap_server.h.
◆ taskParams
| OsTaskParameters taskParams |
Task parameters.
Definition at line 295 of file coap_server.h.
◆ udpInitCallback
| CoapServerUdpInitCallback udpInitCallback |
UDP initialization callback.
Definition at line 283 of file coap_server.h.
◆ uri
| char_t uri[COAP_SERVER_MAX_URI_LEN+1] |
Resource identifier.
Definition at line 304 of file coap_server.h.
The documentation for this struct was generated from the following file:
- cyclone_tcp/coap/coap_server.h
