S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_pubsub_constants.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20#ifndef SOPC_PUBSUB_CONSTANTS_H_
21#define SOPC_PUBSUB_CONSTANTS_H_
22
24
25// Size of buffer (max size of message)
26#ifndef SOPC_PUBSUB_BUFFER_SIZE
27#define SOPC_PUBSUB_BUFFER_SIZE 4096
28#endif
29
30// Size of array. Use for subscriber context
31#ifndef SOPC_PUBSUB_MAX_PUBLISHER_PER_SCHEDULER
32#define SOPC_PUBSUB_MAX_PUBLISHER_PER_SCHEDULER 10
33#endif
34// Size of array. Use for subscriber context
35#ifndef SOPC_PUBSUB_MAX_MESSAGE_PER_PUBLISHER
36#define SOPC_PUBSUB_MAX_MESSAGE_PER_PUBLISHER 10
37#endif
38
39#define SOPC_MAX_LENGTH_UINT64_TO_STRING \
40 21 /* 2^64 = 1.8447*10^19 maximum number you could represent that use maximum chars would be 1.8447*10^19 plus \0 \
41 at the end */
42#define SOPC_MAX_LENGTH_UINT16_TO_STRING \
43 6 /* 2^16 = 65536 maximum number you could represent using maximum chars would be 65536 plus \0 at the end */
44
45// Number of requested token per getSecurityKeys call
46#define SOPC_PUBSUB_SKS_MAX_TOKEN_PER_CALL 5
47
48// Pub Sub Security Policy
49#define SOPC_PUBSUB_SECURITY_POLICY SOPC_SecurityPolicy_PubSub_Aes256_URI
50
51#endif /* SOPC_PUBSUB_CONSTANTS_H_ */
Defines the cryptographic profiles: constants and struct.