IBR-DTNSuite
0.8
|
#include <DTNTPWorker.h>
Public Types | |
enum | MSG_TYPE { TIMESYNC_REQUEST = 1, TIMESYNC_RESPONSE = 2 } |
Public Member Functions | |
TimeSyncMessage () | |
~TimeSyncMessage () | |
Public Attributes | |
MSG_TYPE | type |
timeval | origin_timestamp |
float | origin_quality |
timeval | peer_timestamp |
float | peer_quality |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const DTNTPWorker::TimeSyncMessage &obj) |
std::istream & | operator>> (std::istream &stream, DTNTPWorker::TimeSyncMessage &obj) |
Definition at line 31 of file DTNTPWorker.h.
Definition at line 34 of file DTNTPWorker.h.
Definition at line 67 of file DTNTPWorker.cpp.
References dtn::utils::Clock::gettimeofday(), origin_timestamp, and peer_timestamp.
Definition at line 76 of file DTNTPWorker.cpp.
std::ostream& operator<< | ( | std::ostream & | stream, |
const DTNTPWorker::TimeSyncMessage & | obj | ||
) | [friend] |
Definition at line 80 of file DTNTPWorker.cpp.
std::istream& operator>> | ( | std::istream & | stream, |
DTNTPWorker::TimeSyncMessage & | obj | ||
) | [friend] |
Definition at line 101 of file DTNTPWorker.cpp.
Definition at line 46 of file DTNTPWorker.h.
Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker(), dtn::daemon::operator<<(), and dtn::daemon::operator>>().
Definition at line 45 of file DTNTPWorker.h.
Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker(), dtn::daemon::operator<<(), dtn::daemon::operator>>(), and TimeSyncMessage().
Definition at line 49 of file DTNTPWorker.h.
Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker(), dtn::daemon::operator<<(), dtn::daemon::operator>>(), and dtn::daemon::DTNTPWorker::raiseEvent().
Definition at line 48 of file DTNTPWorker.h.
Referenced by dtn::daemon::DTNTPWorker::DTNTPWorker(), dtn::daemon::operator<<(), dtn::daemon::operator>>(), and TimeSyncMessage().
Definition at line 43 of file DTNTPWorker.h.
Referenced by dtn::daemon::operator<<(), and dtn::daemon::operator>>().