PassiveQueue.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_PassiveQueue_
18 #define HH_SENF_PPI_PassiveQueue_ 1
19 
20 // Custom includes
21 #include "Connectors.hh"
22 #include "Module.hh"
23 #include "predecl.hh"
24 
25 //#include "PassiveQueue.mpp"
26 //-/////////////////////////////////////////////////////////////////////////////////////////////////
27 
28 namespace senf {
29 namespace ppi {
30 namespace module {
31 
46  : public module::Module
47  {
49  public:
52 
53  PassiveQueue();
54 
55  template <class ThrottlingDisc>
56  void throttlingDisc(ThrottlingDisc const & disc);
58 
64  private:
65  virtual void v_init() override;
66 
67  void onInput();
68  void onOutput();
69  };
70 
71 }}}
72 
73 //-/////////////////////////////////////////////////////////////////////////////////////////////////
74 #include "PassiveQueue.cci"
75 //#include "PassiveQueue.ct"
76 #include "PassiveQueue.cti"
77 #endif
78 
79 
80 // Local Variables:
81 // mode: c++
82 // fill-column: 100
83 // c-file-style: "senf"
84 // indent-tabs-mode: nil
85 // ispell-local-dictionary: "american"
86 // compile-command: "scons -u test"
87 // comment-column: 40
88 // End:
connector::PassiveInput input
Definition: PassiveQueue.hh:48
Module base-class.
Definition: Module.hh:169
Connectors public header.
Module public header.
void throttlingDisc(ThrottlingDisc const &disc)
Change the throttling discipline.
predecl public header
Adaptor to connect active a pair of active connectors.
Definition: PassiveQueue.hh:45
#define SENF_PPI_MODULE(name)
Define PPI Module.
Definition: Module.hh:346
Connector passively providing packets.
Definition: Connectors.hh:697
Connector passively receiving packets.
Definition: Connectors.hh:655
connector::PassiveOutput output
Definition: PassiveQueue.hh:51