X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Socket%2FProtocols%2FDatagramSocketProtocol.hh;h=73df0630c55fdc60ecf27d5c84aa15853435ab34;hb=731a143df4de38d4c8b0a81121990951971cd858;hp=3bffdf1be699a68036d7c7478f3d9020cf76e1a6;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/Socket/Protocols/DatagramSocketProtocol.hh b/Socket/Protocols/DatagramSocketProtocol.hh index 3bffdf1..73df063 100644 --- a/Socket/Protocols/DatagramSocketProtocol.hh +++ b/Socket/Protocols/DatagramSocketProtocol.hh @@ -23,12 +23,13 @@ /** \file \brief DatagramSocketProtocol public header */ -#ifndef HH_DatagramSocketProtocol_ -#define HH_DatagramSocketProtocol_ 1 +#ifndef HH_SENF_Socket_Protocols_DatagramSocketProtocol_ +#define HH_SENF_Socket_Protocols_DatagramSocketProtocol_ 1 // Custom includes #include #include "../../Socket/SocketProtocol.hh" +#include "../../Scheduler/ClockService.hh" //#include "DatagramSocketProtocol.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -44,11 +45,12 @@ 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. + \pre The \c SO_TIMESTAMP socket option must not be set on the socket. \returns timestamp when last packet was received */