blob: 78080ae9a5e781d0335b92901cb381a2fd484784 [file] [log] [blame]
Yingdi Yuf7ede412014-08-30 20:37:52 -07001/* -*- Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil -*- */
2/*
Sonu Mishra4d3a2e02017-01-18 20:27:51 -08003 * Copyright (c) 2012-2017 University of California, Los Angeles
Yingdi Yuf7ede412014-08-30 20:37:52 -07004 *
5 * This file is part of ChronoSync, synchronization library for distributed realtime
6 * applications for NDN.
7 *
8 * ChronoSync is free software: you can redistribute it and/or modify it under the terms
9 * of the GNU General Public License as published by the Free Software Foundation, either
10 * version 3 of the License, or (at your option) any later version.
11 *
12 * ChronoSync is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
13 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * ChronoSync, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * @author Zhenkai Zhu <http://irl.cs.ucla.edu/~zhenkai/>
20 * @author Chaoyi Bian <bcy@pku.edu.cn>
21 * @author Alexander Afanasyev <http://lasr.cs.ucla.edu/afanasyev/index.html>
22 * @author Yingdi Yu <yingdi@cs.ucla.edu>
Sonu Mishra4d3a2e02017-01-18 20:27:51 -080023 * @author Sonu Mishra <https://www.linkedin.com/in/mishrasonu>
Yingdi Yuf7ede412014-08-30 20:37:52 -070024 */
25
26#ifndef CHRONOSYNC_LOGIC_HPP
27#define CHRONOSYNC_LOGIC_HPP
28
29#include "boost-header.h"
Ashlesh Gawande687cf922017-05-30 15:04:16 -050030#include "diff-state-container.hpp"
31#include "interest-table.hpp"
32
Yingdi Yuf7ede412014-08-30 20:37:52 -070033#include <memory>
Qiuhan Ding8c095fd2014-11-19 17:38:32 -080034#include <unordered_map>
Yingdi Yuf7ede412014-08-30 20:37:52 -070035
36#include <ndn-cxx/face.hpp>
37#include <ndn-cxx/util/scheduler.hpp>
38#include <ndn-cxx/security/key-chain.hpp>
Ashlesh Gawande687cf922017-05-30 15:04:16 -050039#include <ndn-cxx/security/signing-helpers.hpp>
Yingdi Yucd339022014-11-05 17:51:19 -080040#include <ndn-cxx/security/validator.hpp>
Yingdi Yuf7ede412014-08-30 20:37:52 -070041
Yingdi Yuf7ede412014-08-30 20:37:52 -070042namespace chronosync {
43
44/**
45 * @brief The missing sequence numbers for a session
46 *
47 * This class is used to notify the clients of Logic
48 * the details of state changes.
49 *
50 * Instances of this class is usually used as elements of some containers
51 * such as std::vector, thus it is copyable.
52 */
Sonu Mishra4d3a2e02017-01-18 20:27:51 -080053class NodeInfo
54{
Qiuhan Ding8c095fd2014-11-19 17:38:32 -080055public:
56 Name userPrefix;
57 Name signingId;
58 Name sessionName;
59 SeqNo seqNo;
60};
61
Yingdi Yuf7ede412014-08-30 20:37:52 -070062class MissingDataInfo
63{
64public:
65 /// @brief session name
66 Name session;
67 /// @brief the lowest one of missing sequence numbers
68 SeqNo low;
69 /// @brief the highest one of missing sequence numbers
70 SeqNo high;
71};
72
73/**
74 * @brief The callback function to handle state updates
75 *
76 * The parameter is a set of MissingDataInfo, of which each corresponds to
77 * a session that has changed its state.
78 */
79typedef function<void(const std::vector<MissingDataInfo>&)> UpdateCallback;
80
81/**
82 * @brief Logic of ChronoSync
83 */
84class Logic : noncopyable
85{
86public:
Qiuhan Ding8c095fd2014-11-19 17:38:32 -080087 class Error : public std::runtime_error
88 {
89 public:
90 explicit
91 Error(const std::string& what)
92 : std::runtime_error(what)
93 {
94 }
95 };
96
97public:
Yingdi Yuf7ede412014-08-30 20:37:52 -070098 static const time::steady_clock::Duration DEFAULT_RESET_TIMER;
99 static const time::steady_clock::Duration DEFAULT_CANCEL_RESET_TIMER;
100 static const time::milliseconds DEFAULT_RESET_INTEREST_LIFETIME;
101 static const time::milliseconds DEFAULT_SYNC_INTEREST_LIFETIME;
102 static const time::milliseconds DEFAULT_SYNC_REPLY_FRESHNESS;
Sonu Mishra4d3a2e02017-01-18 20:27:51 -0800103 static const time::milliseconds DEFAULT_RECOVERY_INTEREST_LIFETIME;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700104
105 /**
106 * @brief Constructor
107 *
Yingdi Yu9d5679a2015-02-01 00:17:58 -0800108 * @param face The face used to communication, will be shutdown in destructor
Yingdi Yuf7ede412014-08-30 20:37:52 -0700109 * @param syncPrefix The prefix of the sync group
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800110 * @param defaultUserPrefix The prefix of the first user added to this session
Yingdi Yuf7ede412014-08-30 20:37:52 -0700111 * @param onUpdate The callback function to handle state updates
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800112 * @param defaultSigningId The signing Id of the default user
Yingdi Yucd339022014-11-05 17:51:19 -0800113 * @param validator The validator for packet validation
Yingdi Yuf7ede412014-08-30 20:37:52 -0700114 * @param resetTimer The timer to periodically send Reset Interest
Yingdi Yuf7ede412014-08-30 20:37:52 -0700115 * @param cancelResetTimer The timer to exit from Reset state
Ashlesh Gawande097bb442017-05-31 13:38:00 -0500116 * @param resetInterestLifetime The lifetime of Reset Interest
117 * @param syncInterestLifetime The lifetime of sync interest
118 * @param syncReplyFreshness The FreshnessPeriod of sync reply
119 * @param recoveryInterestLifetime The lifetime of recovery interest
Yingdi Yuf7ede412014-08-30 20:37:52 -0700120 */
121 Logic(ndn::Face& face,
122 const Name& syncPrefix,
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800123 const Name& defaultUserPrefix,
Yingdi Yuf7ede412014-08-30 20:37:52 -0700124 const UpdateCallback& onUpdate,
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800125 const Name& defaultSigningId = DEFAULT_NAME,
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800126 std::shared_ptr<ndn::Validator> validator = DEFAULT_VALIDATOR,
Yingdi Yuf7ede412014-08-30 20:37:52 -0700127 const time::steady_clock::Duration& resetTimer = DEFAULT_RESET_TIMER,
128 const time::steady_clock::Duration& cancelResetTimer = DEFAULT_CANCEL_RESET_TIMER,
129 const time::milliseconds& resetInterestLifetime = DEFAULT_RESET_INTEREST_LIFETIME,
130 const time::milliseconds& syncInterestLifetime = DEFAULT_SYNC_INTEREST_LIFETIME,
Sonu Mishra4d3a2e02017-01-18 20:27:51 -0800131 const time::milliseconds& syncReplyFreshness = DEFAULT_SYNC_REPLY_FRESHNESS,
132 const time::milliseconds& recoveryInterestLifetime = DEFAULT_RECOVERY_INTEREST_LIFETIME);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700133
134 ~Logic();
135
Qiuhan Dingfb8c9e02015-01-30 14:04:55 -0800136 /**
137 * @brief Reset the sync tree (and restart synchronization again)
138 *
139 * @param isOnInterest a flag that tells whether the reset is called by reset interest.
140 */
Yingdi Yuf7ede412014-08-30 20:37:52 -0700141 void
Qiuhan Dingfb8c9e02015-01-30 14:04:55 -0800142 reset(bool isOnInterest = false);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700143
144 /**
145 * @brief Set user prefix
146 *
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800147 * This method will also change the default user and signing Id of that user.
Yingdi Yuf7ede412014-08-30 20:37:52 -0700148 *
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800149 * @param defaultUserPrefix The prefix of user.
Yingdi Yuf7ede412014-08-30 20:37:52 -0700150 */
151 void
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800152 setDefaultUserPrefix(const Name& defaultUserPrefix);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700153
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800154 /// @brief Get the name of default user.
Yingdi Yuf7ede412014-08-30 20:37:52 -0700155 const Name&
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800156 getDefaultUserPrefix() const
Yingdi Yuf7ede412014-08-30 20:37:52 -0700157 {
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800158 return m_defaultUserPrefix;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700159 }
160
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800161 /**
162 * @brief Add user node into the local session.
163 *
164 * This method also reset after adding
165 *
166 * @param userPrefix prefix of the added node
167 * @param signingId signing Id of the added node
168 */
169 void
170 addUserNode(const Name& userPrefix, const Name& signingId = DEFAULT_NAME);
171
172 /// @brief remove the node from the local session
173 void
174 removeUserNode(const Name& userPrefix);
175
176 /**
177 * @brief Get the name of the local session.
178 *
179 * This method gets the session name according to prefix, if prefix is not specified,
180 * it returns the session name of default user.
181 *
182 * @param prefix prefix of the node
183 */
184 const Name&
185 getSessionName(Name prefix = EMPTY_NAME);
186
187 /**
188 * @brief Get current seqNo of the local session.
189 *
190 * This method gets the seqNo according to prefix, if prefix is not specified,
191 * it returns the seqNo of default user.
192 *
193 * @param prefix prefix of the node
194 */
Yingdi Yuf7ede412014-08-30 20:37:52 -0700195 const SeqNo&
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800196 getSeqNo(Name prefix = EMPTY_NAME);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700197
198 /**
199 * @brief Update the seqNo of the local session
200 *
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800201 * The method updates the existing seqNo with the supplied seqNo and prefix.
Yingdi Yuf7ede412014-08-30 20:37:52 -0700202 *
203 * @param seq The new seqNo.
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800204 * @param updatePrefix The prefix of node to update.
Yingdi Yuf7ede412014-08-30 20:37:52 -0700205 */
206 void
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800207 updateSeqNo(const SeqNo& seq, const Name& updatePrefix = EMPTY_NAME);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700208
209 /// @brief Get root digest of current sync tree
210 ndn::ConstBufferPtr
211 getRootDigest() const;
212
213 /// @brief Get the name of all sessions
214 std::set<Name>
215 getSessionNames() const;
216
Yingdi Yu906c2ea2014-10-31 11:24:50 -0700217CHRONOSYNC_PUBLIC_WITH_TESTS_ELSE_PRIVATE:
Yingdi Yuf7ede412014-08-30 20:37:52 -0700218 void
219 printState(std::ostream& os) const;
220
221 ndn::Scheduler&
222 getScheduler()
223 {
224 return m_scheduler;
225 }
226
227 State&
228 getState()
229 {
230 return m_state;
231 }
232
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800233
Yingdi Yuf7ede412014-08-30 20:37:52 -0700234private:
235 /**
236 * @brief Callback to handle Sync Interest
237 *
238 * This method checks whether an incoming interest is a normal one or a reset
239 * and dispatches the incoming interest to corresponding processing methods.
240 *
241 * @param prefix The prefix of the sync group.
242 * @param interest The incoming sync interest.
243 */
244 void
245 onSyncInterest(const Name& prefix, const Interest& interest);
246
247 /**
248 * @brief Callback to handle Sync prefix registration failure
249 *
250 * This method does nothing for now.
251 *
252 * @param prefix The prefix of the sync group.
253 * @param msg The error message.
254 */
255 void
256 onSyncRegisterFailed(const Name& prefix, const std::string& msg);
257
258 /**
259 * @brief Callback to handle Sync Reply
260 *
261 * This method calls validator to validate Sync Reply.
262 * For now, validation is disabled, Logic::onSyncDataValidated is called
263 * directly.
264 *
265 * @param interest The Sync Interest
266 * @param data The reply to the Sync Interest
267 */
268 void
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800269 onSyncData(const Interest& interest, const Data& data);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700270
271 /**
272 * @brief Callback to handle reply to Reset Interest.
273 *
274 * This method does nothing, since reply to Reset Interest is not useful for now.
275 *
276 * @param interest The Reset Interest
277 * @param data The reply to the Reset Interest
278 */
279 void
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800280 onResetData(const Interest& interest, const Data& data);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700281
282 /**
283 * @brief Callback to handle Sync Interest timeout.
284 *
285 * This method does nothing, since Logic per se handles timeout explicitly.
286 *
287 * @param interest The Sync Interest
288 */
289 void
290 onSyncTimeout(const Interest& interest);
291
292 /**
293 * @brief Callback to invalid Sync Reply.
294 *
295 * This method does nothing but drops the invalid reply.
296 *
297 * @param data The invalid Sync Reply
298 */
299 void
300 onSyncDataValidationFailed(const shared_ptr<const Data>& data);
301
302 /**
303 * @brief Callback to valid Sync Reply.
304 *
305 * This method simply passes the valid reply to processSyncData.
306 *
307 * @param data The valid Sync Reply.
Sonu Mishraf42aa2c2017-01-22 18:47:33 -0800308 * @param firstData Whether the data is new or that obtained using exclude filter
Yingdi Yuf7ede412014-08-30 20:37:52 -0700309 */
310 void
Sonu Mishraf42aa2c2017-01-22 18:47:33 -0800311 onSyncDataValidated(const shared_ptr<const Data>& data, bool firstData = true);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700312
313 /**
314 * @brief Process normal Sync Interest
315 *
316 * This method extracts the digest from the incoming Sync Interest,
317 * compares it against current local digest, and process the Sync
318 * Interest according to the comparison result. See docs/design.rst
319 * for more details.
320 *
321 * @param interest The incoming interest
322 * @param isTimedProcessing True if the interest needs an immediate reply,
323 * otherwise hold the interest for a while before
324 * making a reply (to avoid unnecessary recovery)
325 */
326 void
327 processSyncInterest(const shared_ptr<const Interest>& interest,
328 bool isTimedProcessing = false);
329
330 /**
331 * @brief Process reset Sync Interest
332 *
333 * This method simply call Logic::reset()
334 *
335 * @param interest The incoming interest.
336 */
337 void
338 processResetInterest(const Interest& interest);
339
340 /**
341 * @brief Process Sync Reply.
342 *
343 * This method extracts state update information from Sync Reply and applies
344 * it to the Sync Tree and re-express Sync Interest.
345 *
346 * @param name The data name of the Sync Reply.
347 * @param digest The digest in the data name.
348 * @param syncReplyBlock The content of the Sync Reply.
Sonu Mishraf42aa2c2017-01-22 18:47:33 -0800349 * @param firstData Whether the data is new or obtained using exclude filter
Yingdi Yuf7ede412014-08-30 20:37:52 -0700350 */
351 void
352 processSyncData(const Name& name,
353 ndn::ConstBufferPtr digest,
Sonu Mishraf42aa2c2017-01-22 18:47:33 -0800354 const Block& syncReplyBlock,
355 bool firstData);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700356
357 /**
358 * @brief Insert state diff into log
359 *
360 * @param diff The diff .
361 * @param previousRoot The root digest before state changes.
362 */
363 void
364 insertToDiffLog(DiffStatePtr diff,
365 ndn::ConstBufferPtr previousRoot);
366
367 /**
368 * @brief Reply to all pending Sync Interests with a particular commit (or diff)
369 *
370 * @param commit The diff.
371 */
372 void
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800373 satisfyPendingSyncInterests(const Name& updatedPrefix, ConstDiffStatePtr commit);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700374
375 /// @brief Helper method to send normal Sync Interest
376 void
377 sendSyncInterest();
378
379 /// @brief Helper method to send reset Sync Interest
380 void
381 sendResetInterest();
382
383 /// @brief Helper method to send Sync Reply
384 void
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800385 sendSyncData(const Name& nodePrefix, const Name& name, const State& state);
Yingdi Yuf7ede412014-08-30 20:37:52 -0700386
387 /**
388 * @brief Unset reset status
389 *
390 * By invoking this method, one can add its own state into the Sync Tree, thus
391 * jumping out of the reset status
392 */
393 void
394 cancelReset();
395
396 void
397 printDigest(ndn::ConstBufferPtr digest);
398
Sonu Mishra4d3a2e02017-01-18 20:27:51 -0800399 /**
400 * @brief Helper method to send Recovery Interest
401 *
402 * @param digest The digest to be included in the recovery interest
403 */
404 void
405 sendRecoveryInterest(ndn::ConstBufferPtr digest);
406
407 /**
408 * @brief Process Recovery Interest
409 *
410 * This method extracts the digest from the incoming Recovery Interest.
411 * If it recognizes this incoming digest, then it sends its full state
412 * as reply.
413 *
414 * @param interest The incoming interest
415 */
416 void
417 processRecoveryInterest(const Interest& interest);
418
419 /**
420 * @brief Callback to handle Recovery Reply
421 *
422 * This method calls Logic::onSyncDataValidated directly.
423 *
424 * @param interest The Recovery Interest
425 * @param data The reply to the Recovery Interest
426 */
427 void
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800428 onRecoveryData(const Interest& interest, const Data& data);
Sonu Mishra4d3a2e02017-01-18 20:27:51 -0800429
430 /**
431 * @brief Callback to handle Recovery Interest timeout.
432 *
433 * This method does nothing.
434 *
435 * @param interest The Recovery Interest
436 */
437 void
438 onRecoveryTimeout(const Interest& interest);
439
Sonu Mishraf42aa2c2017-01-22 18:47:33 -0800440 /**
441 * @brief Helper method to send Exclude Interest
442 *
443 * @param interest The interest whose exclude filter will be augmented
444 * @param data The data whose implicit digest will be inserted into exclude filter
445 */
446 void
447 sendExcludeInterest(const Interest& interest, const Data& data);
448
449 /**
450 * @brief Helper method to form the exclude Interest and calls sendExcludeInterest
451 *
452 * @param interest The interest whose exclude filter will be augmented
453 * @param nodePrefix The prefix of the sender node
454 * @param commit The commit whose contents will be used to obtain the implicit
455 digest to be excluded
456 * @param previousRoot The digest to be included in the interest
457 */
458 void
459 formAndSendExcludeInterest(const Name& nodePrefix,
460 const State& commit,
461 ndn::ConstBufferPtr previousRoot);
462
Yingdi Yucd339022014-11-05 17:51:19 -0800463public:
464 static const ndn::Name DEFAULT_NAME;
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800465 static const ndn::Name EMPTY_NAME;
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800466 static const std::shared_ptr<ndn::Validator> DEFAULT_VALIDATOR;
Yingdi Yucd339022014-11-05 17:51:19 -0800467
Yingdi Yuf7ede412014-08-30 20:37:52 -0700468private:
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800469 typedef std::unordered_map<ndn::Name, NodeInfo> NodeList;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700470
471 static const ndn::ConstBufferPtr EMPTY_DIGEST;
472 static const ndn::name::Component RESET_COMPONENT;
Sonu Mishra4d3a2e02017-01-18 20:27:51 -0800473 static const ndn::name::Component RECOVERY_COMPONENT;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700474
475 // Communication
476 ndn::Face& m_face;
477 Name m_syncPrefix;
478 const ndn::RegisteredPrefixId* m_syncRegisteredPrefixId;
479 Name m_syncReset;
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800480 Name m_defaultUserPrefix;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700481
482 // State
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800483 NodeList m_nodeList;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700484 State m_state;
485 DiffStateContainer m_log;
486 InterestTable m_interestTable;
487 Name m_outstandingInterestName;
488 const ndn::PendingInterestId* m_outstandingInterestId;
489 bool m_isInReset;
490 bool m_needPeriodReset;
491
492 // Callback
493 UpdateCallback m_onUpdate;
494
495 // Event
496 ndn::Scheduler m_scheduler;
497 ndn::EventId m_delayedInterestProcessingId;
498 ndn::EventId m_reexpressingInterestId;
499 ndn::EventId m_resetInterestId;
500
501 // Timer
502 boost::mt19937 m_randomGenerator;
503 boost::variate_generator<boost::mt19937&, boost::uniform_int<> > m_rangeUniformRandom;
504 boost::variate_generator<boost::mt19937&, boost::uniform_int<> > m_reexpressionJitter;
505 /// @brief Timer to send next reset 0 for no reset
506 time::steady_clock::Duration m_resetTimer;
507 /// @brief Timer to cancel reset state
508 time::steady_clock::Duration m_cancelResetTimer;
509 /// @brief Lifetime of reset interest
510 time::milliseconds m_resetInterestLifetime;
511 /// @brief Lifetime of sync interest
512 time::milliseconds m_syncInterestLifetime;
513 /// @brief FreshnessPeriod of SyncReply
514 time::milliseconds m_syncReplyFreshness;
Sonu Mishra4d3a2e02017-01-18 20:27:51 -0800515 /// @brief Lifetime of recovery interest
516 time::milliseconds m_recoveryInterestLifetime;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700517
Yingdi Yucd339022014-11-05 17:51:19 -0800518 // Security
Yingdi Yuf7ede412014-08-30 20:37:52 -0700519 ndn::KeyChain m_keyChain;
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800520 std::shared_ptr<ndn::Validator> m_validator;
Yingdi Yuf7ede412014-08-30 20:37:52 -0700521
Qiuhan Ding8c095fd2014-11-19 17:38:32 -0800522
Yingdi Yuf7ede412014-08-30 20:37:52 -0700523#ifdef _DEBUG
524 int m_instanceId;
525 static int m_instanceCounter;
526#endif
527};
528
529
530} // namespace chronosync
531
Alexander Afanasyeve9eda8a2017-03-09 14:40:03 -0800532#endif // CHRONOSYNC_LOGIC_HPP