X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fstack%2Finclude%2Focstackconfig.h;h=ee4ffe35a0353cede0c99c5cbbd7459c2608b656;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=b14f4346d85c4213597926f4c140c90d9aef8338;hpb=3f52e71dde4e380927a65b2d8718897b483fd3b7;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/stack/include/ocstackconfig.h b/resource/csdk/stack/include/ocstackconfig.h index b14f434..ee4ffe3 100644 --- a/resource/csdk/stack/include/ocstackconfig.h +++ b/resource/csdk/stack/include/ocstackconfig.h @@ -29,59 +29,52 @@ #ifndef OCSTACK_CONFIG_H_ #define OCSTACK_CONFIG_H_ -/** 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. - * @code - * Prefix : {"oic":[ - * Suffix : ]} - * @endcode - * They have a combined size of 10 bytes. - */ -#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 - /** * Maximum length of the URI supported by client/server while processing * REST requests/responses. */ +#if defined(ARDUINO) || defined(__TIZENRT__) #define MAX_URI_LENGTH (64) +#else +#define MAX_URI_LENGTH (256) +#endif /** * Maximum length of the query supported by client/server while processing * REST requests/responses. */ +#if defined(ARDUINO) || defined(__TIZENRT__) #define MAX_QUERY_LENGTH (64) +#else +#define MAX_QUERY_LENGTH (256) +#endif + /** * Maximum length of the Manufacturer name supported by the server * for manufacturer name. + * @deprecated use MAX_PLATFORM_NAME_LENGTH instead. */ -#define MAX_MANUFACTURER_NAME_LENGTH (16) +#define MAX_MANUFACTURER_NAME_LENGTH (64) /** * Maximum length of the URL to the Manufacturer details supported by * the server. + * @deprecated use MAX_PLATFORM_URL_LENGTH instead. */ -#define MAX_MANUFACTURER_URL_LENGTH (32) +#define MAX_MANUFACTURER_URL_LENGTH (256) + +/** + * Maximum length of the value supported by the server + * for platform property of type string. + */ +#define MAX_PLATFORM_NAME_LENGTH (64) + +/** + * Maximum length of the URL supported by the server + * for platform property of type url. + */ +#define MAX_PLATFORM_URL_LENGTH (256) /** * Maximum number of resources which can be contained inside collection @@ -93,12 +86,20 @@ * Maximum number of vendor specific header options an application can set or receive * in PDU */ +#if defined(ARDUINO) || defined(__TIZENRT__) #define MAX_HEADER_OPTIONS (2) +#else +#define MAX_HEADER_OPTIONS (50) +#endif /** * Maximum Length of the vendor specific header option */ -#define MAX_HEADER_OPTION_DATA_LENGTH (16) +#if defined(ARDUINO) || defined(__TIZENRT__) +#define MAX_HEADER_OPTION_DATA_LENGTH (20) +#else +#define MAX_HEADER_OPTION_DATA_LENGTH (1024) +#endif /** * Sets the time to live (TTL) for response callback(s).