X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FDatagramSocketProtocol.hh;h=236d8ca4001d43cf00e7e86740f0cb6c1065d7c8;hb=8475937b6551f73a1cddd8fa830b7128d4c8ebf7;hp=98929fcc5185736e0a24db39bf11d07ffeaac8ae;hpb=5ed1fa1c42763aebad06c1e4ac8fc5a19e15519a;p=senf.git diff --git a/Socket/Protocols/DatagramSocketProtocol.hh b/Socket/Protocols/DatagramSocketProtocol.hh index 98929fc..236d8ca 100644 --- a/Socket/Protocols/DatagramSocketProtocol.hh +++ b/Socket/Protocols/DatagramSocketProtocol.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2007 +// Copyright (C) 2007 // Fraunhofer Institute for Open Communication Systems (FOKUS) // Competence Center NETwork research (NET), St. Augustin, GERMANY // Stefan Bund @@ -29,6 +29,7 @@ // Custom includes #include #include "../../Socket/SocketProtocol.hh" +#include "../../Scheduler/ClockService.hh" //#include "DatagramSocketProtocol.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -44,15 +45,19 @@ namespace senf { : public virtual SocketProtocol { public: - struct timeval timestamp() const; ///< Return packet timestamp of last packet + ClockService::clock_type timestamp() const; ///< Return packet timestamp of last packet /**< The returned timestamp represents the time, at which the last network packet passed to the user has been received from the network. This allows precise network timing. + + The returned value can be converted to the + senf::ClockService::clock_type representation using + semf::ClockService::from_timeval(). + \pre The \c SO_TIMESTAMP socket option must not be set on the socket. - \returns timestamp when last packet was received - \todo Move this to DatagramSocketProtocol class */ + \returns timestamp when last packet was received */ };