YAMI4Industry
limits.h
Go to the documentation of this file.
1 /* Copyright Inspirel Sp. z o.o. 2013-2015.
2  * This file is part of YAMI4.
3  *
4  * YAMI4 is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * YAMI4 is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with YAMI4. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef YAMI4INDUSTRY_LIMITS_H
19 #define YAMI4INDUSTRY_LIMITS_H
20 
21 /* max length of network target name */
22 /* example: "tcp://192.168.1.10:12345" */
23 #define MAX_LENGTH_OF_TARGET_NAME 32u
24 
25 /* max number of channels */
26 #define MAX_NUMBER_OF_CHANNELS 10u
27 
28 /* max size of output message payload (total buffer size) */
29 /* note: the smallest possible high-level message is 132 bytes */
30 #define MAX_OUTGOING_MESSAGE_PAYLOAD 1024u
31 
32 /* max size of input message payload (total buffer size) */
33 #define MAX_INCOMING_MESSAGE_PAYLOAD 1024u
34 
35 /* max length of header type tag */
36 /* (normally you do not want to change this, */
37 /* this is part of the high-level YAMI4 protocol) */
38 #define MAX_HEADER_TYPE_LENGTH 13u
39 
40 /* max length of object name */
41 #define MAX_OBJECT_NAME_LENGTH 20u
42 
43 /* max length of message name */
44 #define MAX_MESSAGE_NAME_LENGTH 100u
45 
46 /* max length of exception (rejection) message */
47 #define MAX_EXCEPTION_REASON_LENGTH 200u
48 
49 /* Note: the following value:
50  *
51  * MAX_NUMBER_OF_CHANNELS x
52  * (MAX_OUTGOING_MESSAGE_PAYLOAD + MAX_INCOMING_MESSAGE_PAYLOAD)
53  *
54  * is the most significant contributor
55  * to the static memory consumption of the YAMI4 agent.
56  */
57 
58 #endif /* YAMI4INDUSTRY_LIMITS_H */