X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fstack%2Finclude%2Focstackconfig.h;h=1bab0fcaff27efd387e5c851dbfb0fb9b67c3cd4;hb=17c68b2fd1e74586f85e552eeab4e32dc121f8a0;hp=d1463eb62ddc034df1b45792a63dbfc5414a874d;hpb=8c01dff2c5bc5496f7dc1632c498943ec6ecb015;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/stack/include/ocstackconfig.h b/resource/csdk/stack/include/ocstackconfig.h index d1463eb..1bab0fc 100644 --- a/resource/csdk/stack/include/ocstackconfig.h +++ b/resource/csdk/stack/include/ocstackconfig.h @@ -1,6 +1,6 @@ //****************************************************************** // -// Copyright 2014 Intel Corporation All Rights Reserved. +// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // @@ -16,41 +16,18 @@ // See the License for the specific language governing permissions and // limitations under the License. // -//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= - -#ifndef OCSTACK_CONFIG_H_ -#define OCSTACK_CONFIG_H_ - -// This file contains all the variables which can be configured/modified as -// per platform or specific product usage scenarios. +//****************************************************************** -/** This would need to be updated in future as we move to support IPv6 and other - * technologies. - */ -#define DEV_ADDR_SIZE_MAX (16) /** - * Maximum length of the response supported by Server for any REST request. - * The actual repsonse length is 256 for Arduino and 1024 for other platforms. - * Note that the stack will add a prefix and suffix to the payload. - * Prefix : {"oic":[ - * Suffix : ]} - * They have a combined size of 10 bytes. + * @file + * + * This file contains all the variables which can be configured/modified as + * per platform or specific product usage scenarios. */ -#ifdef WITH_ARDUINO -#define MAX_RESPONSE_LENGTH (256) -#else -#define MAX_RESPONSE_LENGTH (1024) -#endif -/** - * Maximum length of the request supported by Client/Server for any REST request. - */ -#ifdef WITH_ARDUINO -#define MAX_REQUEST_LENGTH (256) -#else -#define MAX_REQUEST_LENGTH (1024) -#endif +#ifndef OCSTACK_CONFIG_H_ +#define OCSTACK_CONFIG_H_ /** * Maximum length of the URI supported by client/server while processing @@ -66,7 +43,7 @@ /** * Maximum length of the Manufacturer name supported by the server - * for manufacturer name + * for manufacturer name. */ #define MAX_MANUFACTURER_NAME_LENGTH (16) @@ -83,21 +60,22 @@ #define MAX_CONTAINED_RESOURCES (5) /** - * Maximum number of vendor specific header options an application can set or receive in pdu + * Maximum number of vendor specific header options an application can set or receive + * in PDU */ #define MAX_HEADER_OPTIONS (2) /** * Maximum Length of the vendor specific header option */ -#define MAX_HEADER_OPTION_DATA_LENGTH (16) +#define MAX_HEADER_OPTION_DATA_LENGTH (20) -/* - * Sets the time to live (TTL) for response callbacks. - * The callbacks will be up for deletion after such time but are not guaranteed +/** + * 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 + * @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_CB_TIMEOUT_SECONDS (2 * 60 * 60) // 2 hours = 7200 seconds.