DatagramSocketProtocol.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2020 Fraunhofer Institute for Applied Information Technology (FIT)
3 // Network Research Group (NET)
4 // Schloss Birlinghoven, 53754 Sankt Augustin, GERMANY
5 // Contact: support@wiback.org
6 //
7 // This file is part of the SENF code tree.
8 // It is licensed under the 3-clause BSD License (aka New BSD License).
9 // See LICENSE.txt in the top level directory for details or visit
10 // https://opensource.org/licenses/BSD-3-Clause
11 //
12 
13 
17 #ifndef HH_SENF_Socket_Protocols_DatagramSocketProtocol_
18 #define HH_SENF_Socket_Protocols_DatagramSocketProtocol_ 1
19 
20 // Custom includes
21 #include <sys/time.h>
24 
25 //#include "DatagramSocketProtocol.mpp"
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 
28 namespace senf {
29 
31  //\{
32 
36  : public virtual SocketProtocol
37  {
38  public:
39  void timestamp(struct timespec * spec) const;
40 
42 
50  };
51 
52 
53  //\}
54 }
55 
56 //-/////////////////////////////////////////////////////////////////////////////////////////////////
57 //#include "DatagramSocketProtocol.cci"
58 //#include "DatagramSocketProtocol.ct"
59 //#include "DatagramSocketProtocol.cti"
60 #endif
61 
62 
63 // Local Variables:
64 // mode: c++
65 // fill-column: 100
66 // comment-column: 40
67 // c-file-style: "senf"
68 // indent-tabs-mode: nil
69 // ispell-local-dictionary: "american"
70 // compile-command: "scons -u test"
71 // End:
config::time_type clock_type
Socket Protocol base class.
ClockService::clock_type timestamp() const
Return packet timestamp of last packet.
SocketProtocol and ConcreteSocketProtocol public header.
Protocol facet providing generic BSD datagram socket functionality.