96 , ReceiveBufferSize(0)
134 const int64_t daysBetween1601And1970 = 134774;
135 const int64_t secsFrom1601To1970 = daysBetween1601And1970 * 24 * 3600LL;
136 int64_t t1 = t + secsFrom1601To1970;
137 t1 = t1 * 10000000LL;
154 using namespace std::chrono;
155 static auto offset = system_clock::from_time_t(0).time_since_epoch();
157 const auto us = duration_cast<microseconds>(t.time_since_epoch() + offset);
158 const auto n = us.count();
164 const int64_t daysBetween1601And1970 = 134774;
165 const int64_t secsFrom1601To1970 = daysBetween1601And1970 * 24 * 3600LL;
167 if (dateTime.
Value < secsFrom1601To1970)
169 std::stringstream stream;
170 stream <<
"OpcUa date time cannot be less than " << secsFrom1601To1970;
171 throw std::invalid_argument(stream.str());
174 const int64_t secsFrom1970 = dateTime.
Value / 10000000LL - secsFrom1601To1970;
185 ReturnDiagnostics = 0;
189 Additional.TypeId.TwoByteData.Identifier = 0;
193 : ClientProtocolVersion(0)
196 , RequestLifeTime(300000)
214 , ServerProtocolVersion(0)
CloseSecureChannelRequest()
static DateTime FromTimeT(time_t t, unsigned usec=0)
OpenSecureChannelRequest()
spdlog::log_clock::time_point now()
OpenSecureChannelParameters()
static time_t ToTimeT(DateTime dateTime)
OPC UA Address space part. GNU LGPL.
const char * Binary(const char *input, short n)
static DateTime Current()
uint32_t ReceiveBufferSize
OpenSecureChannelResponse()
std::size_t RawSize(const T &obj)