3 #ifndef GCP_UTIL_PORTS_H
4 #define GCP_UTIL_PORTS_H
17 #include "gcp/util/common/Directives.h"
20 #define PORT_OFFSET 5000+gcp::util::Ports::expOffset()
22 #define PORT_OFFSET 6000+gcp::util::Ports::expOffset()
29 #define CP_RTC_PORT_BASE 440
30 #define CP_RTC_PORT CP_RTC_PORT_BASE+PORT_OFFSET
36 #define CP_CONTROL_PORT_BASE 441
37 #define CP_CONTROL_PORT CP_CONTROL_PORT_BASE+PORT_OFFSET
43 #define CP_MONITOR_PORT_BASE 442
44 #define CP_MONITOR_PORT CP_MONITOR_PORT_BASE+PORT_OFFSET
50 #define CP_IM_MONITOR_PORT_BASE 443
51 #define CP_IM_MONITOR_PORT CP_IM_MONITOR_PORT_BASE+PORT_OFFSET
57 #define CP_RTS_PORT_BASE 444
58 #define CP_RTS_PORT CP_RTS_PORT_BASE+PORT_OFFSET
64 #define CP_RTO_PORT_BASE 445
65 #define CP_RTO_PORT CP_RTO_PORT_BASE+PORT_OFFSET
71 #define TRANS_ANT_CONTROL_PORT_BASE 446
72 #define TRANS_ANT_CONTROL_PORT TRANS_ANT_CONTROL_PORT_BASE+PORT_OFFSET
78 #define TRANS_ANT_SCANNER_PORT_BASE 447
79 #define TRANS_ANT_SCANNER_PORT TRANS_ANT_SCANNER_PORT_BASE+PORT_OFFSET
85 #define TRANS_GRABBER_CONTROL_PORT_BASE 448
86 #define TRANS_GRABBER_CONTROL_PORT TRANS_GRABBER_CONTROL_PORT_BASE+PORT_OFFSET
92 #define TRANS_WEATHER_PORT_BASE 449
93 #define TRANS_WEATHER_PORT TRANS_WEATHER_PORT_BASE+PORT_OFFSET
99 #define TIPPER_SERVER_PORT_BASE 450
100 #define TIPPER_SERVER_PORT TIPPER_SERVER_PORT_BASE+PORT_OFFSET
106 #define WX_SERVER_PORT_BASE 451
107 #define WX_SERVER_PORT WX_SERVER_PORT_BASE+PORT_OFFSET
114 static unsigned base(
bool stable=DIR_IS_STABLE);
115 static unsigned expOffset();
116 static unsigned expOffset(std::string exp);
121 static unsigned tipperPort(std::string exp);
126 static unsigned wxPort(std::string exp);
131 static unsigned controlControlPort(std::string exp);
132 static unsigned controlMonitorPort(std::string exp);
133 static unsigned controlImMonitorPort(std::string exp);
135 static unsigned controlControlPort(
bool stable=DIR_IS_STABLE);
136 static unsigned controlMonitorPort(
bool stable=DIR_IS_STABLE);
137 static unsigned controlImMonitorPort(
bool stable=DIR_IS_STABLE);
140 static unsigned controlOptcamPort(std::string exp);
141 static unsigned controlMediatorPort(std::string exp);
146 static unsigned mediatorAntennaControlPort(std::string exp);
147 static unsigned mediatorAntennaMonitorPort(std::string exp);
148 static unsigned mediatorGrabberControlPort(std::string exp);
155 #endif // End #ifndef GCP_UTIL_PORTS_H