IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ocstackconfig.h File Reference

This file contains all the variables which can be configured/modified as per platform or specific product usage scenarios. More...

Go to the source code of this file.

Macros

#define MAX_URI_LENGTH   (256)
 Maximum length of the URI supported by client/server while processing REST requests/responses. More...
 
#define MAX_QUERY_LENGTH   (256)
 Maximum length of the query supported by client/server while processing REST requests/responses. More...
 
#define MAX_MANUFACTURER_NAME_LENGTH   (64)
 Maximum length of the Manufacturer name supported by the server for manufacturer name. More...
 
#define MAX_MANUFACTURER_URL_LENGTH   (256)
 Maximum length of the URL to the Manufacturer details supported by the server. More...
 
#define MAX_PLATFORM_NAME_LENGTH   (64)
 Maximum length of the value supported by the server for platform property of type string. More...
 
#define MAX_PLATFORM_URL_LENGTH   (256)
 Maximum length of the URL supported by the server for platform property of type url. More...
 
#define MAX_CONTAINED_RESOURCES   (5)
 Maximum number of resources which can be contained inside collection resource. More...
 
#define MAX_HEADER_OPTIONS   (50)
 Maximum number of vendor specific header options an application can set or receive in PDU. More...
 
#define MAX_HEADER_OPTION_DATA_LENGTH   (1024)
 Maximum Length of the vendor specific header option. More...
 
#define MAX_CB_TIMEOUT_SECONDS   (2 * 60 * 60)
 Sets the time to live (TTL) for response callback(s). More...
 

Detailed Description

This file contains all the variables which can be configured/modified as per platform or specific product usage scenarios.

Macro Definition Documentation

#define MAX_CB_TIMEOUT_SECONDS   (2 * 60 * 60)

Sets the time to live (TTL) for response callback(s).

The callback(s) will be up for deletion after such time but are not guaranteed to be deleted immediately and you may get responses even after timeout. This timeout will NOT apply to OBSERVE requests. OBSERVE needs an explicit cancel using OCCancel().

Note
: Changing the setting to a very long duration may lead to unsupported and untested operation. Setting this to as small a value as reasonable will reclaim memory faster.
#define MAX_CONTAINED_RESOURCES   (5)

Maximum number of resources which can be contained inside collection resource.

#define MAX_HEADER_OPTION_DATA_LENGTH   (1024)

Maximum Length of the vendor specific header option.

#define MAX_HEADER_OPTIONS   (50)

Maximum number of vendor specific header options an application can set or receive in PDU.

#define MAX_MANUFACTURER_NAME_LENGTH   (64)

Maximum length of the Manufacturer name supported by the server for manufacturer name.

Deprecated:
use MAX_PLATFORM_NAME_LENGTH instead.
#define MAX_MANUFACTURER_URL_LENGTH   (256)

Maximum length of the URL to the Manufacturer details supported by the server.

Deprecated:
use MAX_PLATFORM_URL_LENGTH instead.
#define MAX_PLATFORM_NAME_LENGTH   (64)

Maximum length of the value supported by the server for platform property of type string.

#define MAX_PLATFORM_URL_LENGTH   (256)

Maximum length of the URL supported by the server for platform property of type url.

#define MAX_QUERY_LENGTH   (256)

Maximum length of the query supported by client/server while processing REST requests/responses.

#define MAX_URI_LENGTH   (256)

Maximum length of the URI supported by client/server while processing REST requests/responses.