IBR-DTNSuite  0.8
dtn::daemon::DTNTPWorker::TimeSyncMessage Class Reference

#include <DTNTPWorker.h>

List of all members.

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)

Detailed Description

Definition at line 31 of file DTNTPWorker.h.


Member Enumeration Documentation

Enumerator:
TIMESYNC_REQUEST 
TIMESYNC_RESPONSE 

Definition at line 34 of file DTNTPWorker.h.


Constructor & Destructor Documentation

Definition at line 67 of file DTNTPWorker.cpp.

References dtn::utils::Clock::gettimeofday(), origin_timestamp, and peer_timestamp.

Here is the call graph for this function:


Friends And Related Function Documentation

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.


Member Data Documentation


The documentation for this class was generated from the following files: