CA Integration: Sending observe register/deregister request from client to server...
[platform/upstream/iotivity.git] / resource / csdk / stack / include / ocstackconfig.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #ifndef OCSTACK_CONFIG_H_
22 #define OCSTACK_CONFIG_H_
23
24 // This file contains all the variables which can be configured/modified as
25 // per platform or specific product usage scenarios.
26
27
28 /**
29  * Maximum length of the response supported by Server for any REST request.
30  */
31 #ifdef WITH_ARDUINO
32 #define MAX_RESPONSE_LENGTH (256)
33 #else
34 #define MAX_RESPONSE_LENGTH (1024)
35 #endif
36
37 /**
38  * Maximum length of the request supported by Client/Server for any REST request.
39  */
40 #ifdef WITH_ARDUINO
41 #define MAX_REQUEST_LENGTH (256)
42 #else
43 #define MAX_REQUEST_LENGTH (1024)
44 #endif
45
46 /**
47  * Maximum length of the URI supported by client/server while processing
48  * REST requests/responses.
49  */
50 #define MAX_URI_LENGTH (64)
51
52 /**
53  * Maximum length of the query supported by client/server while processing
54  * REST requests/responses.
55  */
56 #define MAX_QUERY_LENGTH (64)
57
58 /**
59  * Maximum number of resources which can be contained inside collection
60  * resource.
61  */
62 #define MAX_CONTAINED_RESOURCES  (5)
63
64 /**
65  *  Maximum number of vendor specific header options an application can set or receive in pdu
66  */
67 #define MAX_HEADER_OPTIONS (2)
68
69 /**
70  *  Maximum Length of the vendor specific header option
71  */
72 #define MAX_HEADER_OPTION_DATA_LENGTH (16)
73
74 #endif //OCSTACK_CONFIG_H_