XDK API  3.6.0
Documentation
Macros
Serval_Resources.h File Reference

Lists the network sockets required by the stack. More...

#include <Serval_Defines.h>
#include <Serval_Http.h>
#include <Serval_Log.h>
#include <Serval_Mqtt.h>
#include <Serval_Rest.h>
#include <Serval_XTcp.h>
#include <Serval_Ws.h>
+ Include dependency graph for Serval_Resources.h:

Macros

#define SERVAL_NUM_TCP_LISTENER
 
#define SERVAL_NUM_TCP_SOCKETS
 
#define SERVAL_NUM_UDP_SOCKETS
 

Detailed Description

This file advertise the network sockets required by the stack. These figures are automatically consistent with the stack configuration. They do not need to be adjusted manually if the stack configuration is changed.

Exception: if new protocols are added which require additional sockets the defines below must be adapted.

Macro Definition Documentation

#define SERVAL_NUM_TCP_LISTENER
Value:
( SERVAL_ENABLE_DPWS + \
SERVAL_ENABLE_WEBSERVER + \
SERVAL_ENABLE_REST_SERVER * SERVAL_ENABLE_REST_HTTP_BINDING + \
SERVAL_ENABLE_XTCP_CLIENT \
)

Number of needed TCP listen sockets.

#define SERVAL_NUM_TCP_SOCKETS
Value:
(SERVAL_HTTP_MAX_NUM_SESSIONS * SERVAL_ENABLE_HTTP) + \
(SERVAL_XTCP_MAX_NUM_CONNECTIONS * SERVAL_ENABLE_XTCP) + \
#define SERVAL_XTCP_MAX_NUM_CONNECTIONS
Definition: Serval_XTcp.h:53
#define SERVAL_ENABLE_WS
Definition: Serval_Defines.h:289
#define SERVAL_ENABLE_MQTT
Definition: Serval_Defines.h:61
#define SERVAL_MQTT_MAX_NUM_SESSIONS
Definition: Serval_Mqtt.h:77
#define SERVAL_WS_MAX_NUM_CONNECTIONS
Definition: Serval_Ws.h:34
#define SERVAL_ENABLE_HTTP
Definition: Serval_Defines.h:121

Number of TCP data sockets needed in parallel.

#define SERVAL_NUM_UDP_SOCKETS
Value:
( SERVAL_ENABLE_DPWS + \
SERVAL_ENABLE_COAP_SERVER + \
SERVAL_ENABLE_COAP_SERVER * SERVAL_ENABLE_DTLS_SERVER + \
SERVAL_ENABLE_COAP_CLIENT + \
SERVAL_ENABLE_COAP_CLIENT * SERVAL_ENABLE_DTLS_CLIENT + \
SERVAL_ENABLE_XUDP + \
#define SERVAL_ENABLE_NETWORK_LOG
Definition: Serval_Log.h:117
#define SERVAL_ENABLE_SNTP_CLIENT
Definition: Serval_Defines.h:271

Number of needed UDP sockets.


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:46 by doxygen 1.8.8