CloneSource.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_PPI_CloneSource_
18 #define HH_SENF_PPI_CloneSource_ 1
19 
20 // Custom includes
21 #include "Module.hh"
22 #include "Connectors.hh"
23 
24 //#include "CloneSource.mpp"
25 //-/////////////////////////////////////////////////////////////////////////////////////////////////
26 
27 namespace senf {
28 namespace ppi {
29 namespace module {
30 
38  : public Module
39  {
41 
42  public:
44 
45  CloneSource(senf::Packet const & packet);
46  void replacePacket(senf::Packet const & packet);
47 
48  private:
49  void request();
50 
51  senf::Packet packet_;
52  };
53 
54 }}}
55 
56 //-/////////////////////////////////////////////////////////////////////////////////////////////////
57 //#include "CloneSource.cci"
58 //#include "CloneSource.ct"
59 //#include "CloneSource.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:
Module base-class.
Definition: Module.hh:169
Connectors public header.
connector::PassiveOutput output
Definition: CloneSource.hh:40
Module public header.
CloneSource(senf::Packet const &packet)
Definition: CloneSource.cc:24
Generate clone's of a template packet.
Definition: CloneSource.hh:37
#define SENF_PPI_MODULE(name)
Define PPI Module.
Definition: Module.hh:346
Connector passively providing packets.
Definition: Connectors.hh:697
void replacePacket(senf::Packet const &packet)
Definition: CloneSource.cc:36