DiscardSink.cc
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 #include "DiscardSink.hh"
18 //#include "DiscardSink.ih"
19 
20 // Custom includes
21 
22 //#include "DiscardSink.mpp"
23 #define prefix_
24 //-/////////////////////////////////////////////////////////////////////////////////////////////////
25 
27 {
28  noroute(input);
29  input.onRequest(&DiscardSink::request);
30 }
31 
32 prefix_ void senf::ppi::module::DiscardSink::request()
33 {
34  senf::IGNORE( input() );
35 }
36 
37 //-/////////////////////////////////////////////////////////////////////////////////////////////////
38 #undef prefix_
39 //#include "DiscardSink.mpp"
40 
41 
42 // Local Variables:
43 // mode: c++
44 // fill-column: 100
45 // comment-column: 40
46 // c-file-style: "senf"
47 // indent-tabs-mode: nil
48 // ispell-local-dictionary: "american"
49 // compile-command: "scons -u test"
50 // End:
DiscardSink public header.
void noroute(connector::Connector &connector)
Define terminal connectors.
Definition: Module.cc:114
#define prefix_
Definition: DiscardSink.cc:23
void onRequest(Handler handler)
Register I/O event handler.
connector::PassiveInput input
Definition: DiscardSink.hh:40