SENF Extensible Network Framework
Home
Overview
Examples
HowTos
Glossary
Ext
NetEmu
PPI
Packets
Scheduler
Socket
Utils
Console
Daemon
Logger
Termlib
DiscardSink.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_DiscardSink_
18
#define HH_SENF_PPI_DiscardSink_ 1
19
20
// Custom includes
21
#include "
Connectors.hh
"
22
#include "
Module.hh
"
23
24
//#include "DiscardSink.mpp"
25
//-/////////////////////////////////////////////////////////////////////////////////////////////////
26
27
namespace
senf
{
28
namespace
ppi {
29
namespace
module {
30
37
class
DiscardSink
38
:
public
Module
39
{
40
SENF_PPI_MODULE
(
DiscardSink
);
41
public
:
42
connector::PassiveInput<>
input
;
43
44
DiscardSink
();
45
46
private
:
47
void
request();
48
};
49
50
51
}}}
52
53
//-/////////////////////////////////////////////////////////////////////////////////////////////////
54
//#include "DiscardSink.cci"
55
//#include "DiscardSink.ct"
56
//#include "DiscardSink.cti"
57
#endif
58
59
60
// Local Variables:
61
// mode: c++
62
// fill-column: 100
63
// comment-column: 40
64
// c-file-style: "senf"
65
// indent-tabs-mode: nil
66
// ispell-local-dictionary: "american"
67
// compile-command: "scons -u test"
68
// End:
senf::ppi::module::Module
Module base-class.
Definition:
Module.hh:169
Connectors.hh
Connectors public header.
Module.hh
Module public header.
senf::ppi::module::DiscardSink::DiscardSink
DiscardSink()
Definition:
DiscardSink.cc:26
senf
Definition:
ActiveFeeder.hh:28
SENF_PPI_MODULE
#define SENF_PPI_MODULE(name)
Define PPI Module.
Definition:
Module.hh:346
senf::ppi::module::DiscardSink::input
connector::PassiveInput input
Definition:
DiscardSink.hh:40
senf::ppi::connector::PassiveInput
Connector passively receiving packets.
Definition:
Connectors.hh:655
senf::ppi::module::DiscardSink
Module discarding all received packets.
Definition:
DiscardSink.hh:37