pvAccessCPP  7.1.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
pvaConstants.h
1 
7 #ifndef PVACONSTANTS_H_
8 #define PVACONSTANTS_H_
9 
10 #include <compilerDependencies.h>
11 
12 #ifdef epicsExportSharedSymbols
13 # define pvaConstantsepicsExportSharedSymbols
14 # undef epicsExportSharedSymbols
15 #endif
16 
17 #include <pv/pvType.h>
18 
19 #ifdef pvaConstantsepicsExportSharedSymbols
20 # define epicsExportSharedSymbols
21 # undef pvaConstantsepicsExportSharedSymbols
22 #endif
23 #include <shareLib.h>
24 
25 namespace epics {
26 namespace pvAccess {
27 
29 const epics::pvData::int8 PVA_MAGIC = static_cast<epics::pvData::int8>(0xCA);
30 
31 const epics::pvData::int8 PVA_SERVER_PROTOCOL_REVISION = 2;
32 const epics::pvData::int8 PVA_CLIENT_PROTOCOL_REVISION = 2;
33 
35 const epics::pvData::int8 PVA_PROTOCOL_REVISION EPICS_DEPRECATED = 1;
36 
38 const epics::pvData::int8 PVA_VERSION EPICS_DEPRECATED = 1;
39 
41 const epics::pvData::int32 PVA_SERVER_PORT = 5075;
42 
44 const epics::pvData::int32 PVA_BROADCAST_PORT = 5076;
45 
47 const epics::pvData::int16 PVA_MESSAGE_HEADER_SIZE = 8;
48 
55 const epics::pvData::int32 MAX_UDP_UNFRAGMENTED_SEND = 1440;
56 
61 const epics::pvData::int32 MAX_UDP_RECV = 65487;
62 
64 const epics::pvData::int32 MAX_TCP_RECV = 1024*16;
65 
67 const epics::pvData::int32 MAX_SEARCH_BATCH_COUNT = 0x7FFF; // 32767
68 
70 const epics::pvData::int16 PVA_DEFAULT_PRIORITY = 0;
71 
73 const epics::pvData::uint32 MAX_CHANNEL_NAME_LENGTH = 500;
74 
76 const epics::pvData::int16 INVALID_DATA_TYPE = 0xFFFF;
77 
79 const epics::pvData::int32 INVALID_IOID = 0;
80 
82 epicsShareExtern const std::string PVACCESS_DEFAULT_PROVIDER;
83 
85 epicsShareExtern const std::string PVACCESS_ALL_PROVIDERS;
86 
88 epicsShareExtern const std::string PVACCESS_DEBUG;
89 }
90 }
91 
92 #endif /* PVACONSTANTS_H_ */
const std::string PVACCESS_DEFAULT_PROVIDER
Default PVA provider name.
const epics::pvData::int8 PVA_VERSION
PVA version signature used to report this implementation version in header.
Definition: pvaConstants.h:38
const std::string PVACCESS_DEBUG
Name of the system env.
const epics::pvData::int16 PVA_MESSAGE_HEADER_SIZE
PVA protocol message header size.
Definition: pvaConstants.h:47
const epics::pvData::int32 MAX_UDP_RECV
UDP maximum receive message size.
Definition: pvaConstants.h:61
const epics::pvData::int16 PVA_DEFAULT_PRIORITY
Default priority (corresponds to POSIX SCHED_OTHER)
Definition: pvaConstants.h:70
const epics::pvData::int32 MAX_UDP_UNFRAGMENTED_SEND
UDP maximum send message size.
Definition: pvaConstants.h:55
const std::string PVACCESS_ALL_PROVIDERS
&quot;All-providers registered&quot; PVA provider name.
const epics::pvData::uint32 MAX_CHANNEL_NAME_LENGTH
Unreasonable channel name length.
Definition: pvaConstants.h:73
const epics::pvData::int8 PVA_PROTOCOL_REVISION
PVA protocol revision (implemented by this library).
Definition: pvaConstants.h:35
const epics::pvData::int16 INVALID_DATA_TYPE
Invalid data type.
Definition: pvaConstants.h:76
const epics::pvData::int32 PVA_SERVER_PORT
Default PVA server port.
Definition: pvaConstants.h:41
const epics::pvData::int32 INVALID_IOID
Invalid IOID.
Definition: pvaConstants.h:79
const epics::pvData::int32 MAX_TCP_RECV
TCP maximum receive message size.
Definition: pvaConstants.h:64
const epics::pvData::int8 PVA_MAGIC
PVA protocol magic number.
Definition: pvaConstants.h:29
const epics::pvData::int32 PVA_BROADCAST_PORT
Default PVA beacon port.
Definition: pvaConstants.h:44
const epics::pvData::int32 MAX_SEARCH_BATCH_COUNT
Maximum number of search requests in one search message.
Definition: pvaConstants.h:67