senf::emu::TunnelClientInterface Class Reference

#include <senf/Ext/NetEmu/P2PTunnel/TunnelInterface.hh>

Inheritance diagram for senf::emu::TunnelClientInterface:

Public Types

typedef TypedInterfaceDecorator< TunnelClientInterface, Interface::DecoratorDecorator
 
- Public Types inherited from senf::emu::WiredInterface
typedef TypedInterfaceDecorator< WiredInterface, Interface::DecoratorDecorator
 
- Public Types inherited from senf::emu::Interface
typedef InterfaceDecorator Decorator
 Interface base class specific decorator type More...
 

Public Member Functions

 TunnelClientInterface (INet6SocketAddress const &address)
 
 TunnelClientInterface (INet4SocketAddress const &address)
 
void serverAddress (INet6SocketAddress const &address)
 
void serverAddress (INet4SocketAddress const &address)
 
INet6SocketAddress const & serverAddress () const
 
bool established () const
 
unsigned capacity (tunnel::CapacityDirection direction) const
 
void capacity (tunnel::CapacityDirection direction, unsigned cap)
 
unsigned sndBuf ()
 
void sndBuf (unsigned sndbuf)
 
unsigned rcvBuf ()
 
void rcvBuf (unsigned rcvbuf)
 
unsigned fragmentationThreshold () const
 
void fragmentationThreshold (unsigned mtu)
 
unsigned maxBurst () const
 
void maxBurst (unsigned v)
 
- Public Member Functions inherited from senf::emu::TunnelInterfaceBase
virtual ~TunnelInterfaceBase ()
 
INet6SocketAddress const & address () const
 
ClockService::clock_type timeout () const
 
void timeout (ClockService::clock_type t)
 
boost::shared_ptr< InterfaceIdFactoryBaseifaceIdFactory ()
 
void ifaceIdFactory (boost::shared_ptr< InterfaceIdFactoryBase > factory)
 
void qAlgorithm (senf::ppi::QueueingAlgorithm::ptr qAlgorithm)
 
senf::ppi::QueueingAlgorithmqAlgorithm () const
 
- Public Member Functions inherited from senf::emu::InterfaceAPIBase< interface::Wired, interface::Bidirectional >
template<class Output , class Input >
 InterfaceAPIBase (Output &output, Input &input)
 
- Public Member Functions inherited from senf::emu::Interface
virtual ~Interface ()
 
bool canTransmit () const
 true, if interface is transmit capable More...
 
bool canReceive () const
 true, if interface is receive capable More...
 
void enable ()
 Enable interface (aka ifconfig up) More...
 
void disable ()
 Disable interface (aka ifconfig down) More...
 
bool enabled () const
 true, if interface enabled More...
 
unsigned index () const
 Get interface index. More...
 
void id (MACAddress const &eui)
 Change interface MAC. More...
 
MACAddress const & id () const
 Get interface MAC Address. More...
 
void deviceId (InterfaceDeviceId id)
 
InterfaceDeviceId deviceId () const
 
std::string const & device () const
 
boost::uint8_t linkTypeId () const
 
std::string interfaceTypeName () const
 
console::DirectoryNodeconsoleDir () const
 Access interface console directory. More...
 
console::DirectoryNodestatisticsDir () const
 Access the interface statistics directory. More...
 
template<class Stat >
senf::StatisticsregisterStatistics (std::string name, Stat &stat)
 Register statistics source. More...
 
boost::optional< senf::Statistics & > statistic (std::string const &name)
 Get registered statistic. More...
 
void startStatistics (ClockService::clock_type inverval)
 Start statistics generation. More...
 
- Public Member Functions inherited from senf::emu::Receiver
virtual ~Receiver ()
 
bool annotationMode () const
 Get interface annotationMode status. More...
 
void annotationMode (bool a)
 Enable/Disable AnnotationPackets for each frame. More...
 
bool promisc () const
 Get interface promiscuous status. More...
 
void promisc (bool v)
 Change interface promiscuous status. More...
 
void mcAdd (senf::MACAddress const &address)
 
void mcDrop (senf::MACAddress const &address)
 
void flushRxQueues ()
 Flush Rx Queues. More...
 
- Public Member Functions inherited from senf::emu::Transmitter
virtual ~Transmitter ()
 
unsigned mtu () const
 Get interface MTU. More...
 
void mtu (unsigned v)
 Set interface MTU. More...
 
void flushTxQueues ()
 Flush Tx Queues. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from senf::emu::Interface
static unsigned nodeId ()
 Get unique node id. More...
 
static void nodeId (unsigned id)
 Set unique node id. More...
 
- Public Attributes inherited from senf::emu::Interface
boost::signals2::signal< void(Interface &, MACAddress)> idChangedSignal
 
- Public Attributes inherited from senf::emu::Receiver
ppi::connector::ActiveOutputJack< EthernetPacketoutput
 
- Public Attributes inherited from senf::emu::Transmitter
ppi::connector::PassiveInputJack< EthernetPacketinput
 
- Protected Member Functions inherited from senf::emu::TunnelInterfaceBase
template<class Output , class Input >
 TunnelInterfaceBase (Output &output, Input &input, detail::TunnelControllerBase &ctrlBase, INet6SocketAddress const &address)
 
void isUp (bool up)
 
detail::TunnelControllerBasetunnelCtrlBase ()
 
detail::TunnelControllerBasetunnelCtrlBase () const
 
- Protected Member Functions inherited from senf::emu::InterfaceAPIBase< interface::Wired, interface::Bidirectional >
void init ()
 
- Protected Member Functions inherited from senf::emu::WiredInterface
void init ()
 
- Protected Member Functions inherited from senf::emu::Interface
 Interface ()
 
void init ()
 Initialize interface. More...
 
- Protected Member Functions inherited from senf::emu::WiredReceiver
 WiredReceiver (ppi::connector::ActiveOutput<> &output)
 
 WiredReceiver (ppi::connector::ActiveOutput< EthernetPacket > &output)
 
 WiredReceiver (ppi::connector::ActiveOutputJack<> &output)
 
 WiredReceiver (ppi::connector::ActiveOutputJack< EthernetPacket > &output)
 
void init ()
 
- Protected Member Functions inherited from senf::emu::WiredTransmitter
 WiredTransmitter (ppi::connector::PassiveInput<> &input)
 
 WiredTransmitter (ppi::connector::PassiveInput< EthernetPacket > &input)
 
 WiredTransmitter (ppi::connector::PassiveInputJack<> &input)
 
 WiredTransmitter (ppi::connector::PassiveInputJack< EthernetPacket > &input)
 
void init ()
 
- Protected Member Functions inherited from senf::emu::HardwareInterface
void init ()
 

Detailed Description

Definition at line 122 of file TunnelInterface.hh.

Member Typedef Documentation

◆ Decorator

Constructor & Destructor Documentation

◆ TunnelClientInterface() [1/2]

senf::emu::TunnelClientInterface::TunnelClientInterface ( INet6SocketAddress const &  address)

Definition at line 488 of file TunnelInterface.cc.

◆ TunnelClientInterface() [2/2]

senf::emu::TunnelClientInterface::TunnelClientInterface ( INet4SocketAddress const &  address)

Definition at line 483 of file TunnelInterface.cc.

Member Function Documentation

◆ capacity() [1/2]

unsigned senf::emu::TunnelClientInterface::capacity ( tunnel::CapacityDirection  direction) const

Definition at line 588 of file TunnelInterface.cc.

◆ capacity() [2/2]

void senf::emu::TunnelClientInterface::capacity ( tunnel::CapacityDirection  direction,
unsigned  cap 
)

Definition at line 595 of file TunnelInterface.cc.

◆ established()

bool senf::emu::TunnelClientInterface::established ( ) const

Definition at line 582 of file TunnelInterface.cc.

◆ fragmentationThreshold() [1/2]

unsigned senf::emu::TunnelClientInterface::fragmentationThreshold ( ) const

Definition at line 600 of file TunnelInterface.cc.

◆ fragmentationThreshold() [2/2]

void senf::emu::TunnelClientInterface::fragmentationThreshold ( unsigned  mtu)

Definition at line 606 of file TunnelInterface.cc.

◆ maxBurst() [1/2]

unsigned senf::emu::TunnelClientInterface::maxBurst ( ) const

Definition at line 649 of file TunnelInterface.cc.

◆ maxBurst() [2/2]

void senf::emu::TunnelClientInterface::maxBurst ( unsigned  v)

Definition at line 655 of file TunnelInterface.cc.

◆ rcvBuf() [1/2]

unsigned senf::emu::TunnelClientInterface::rcvBuf ( )

Definition at line 632 of file TunnelInterface.cc.

◆ rcvBuf() [2/2]

void senf::emu::TunnelClientInterface::rcvBuf ( unsigned  rcvbuf)

Definition at line 625 of file TunnelInterface.cc.

◆ serverAddress() [1/3]

void senf::emu::TunnelClientInterface::serverAddress ( INet6SocketAddress const &  address)

Definition at line 571 of file TunnelInterface.cc.

◆ serverAddress() [2/3]

void senf::emu::TunnelClientInterface::serverAddress ( INet4SocketAddress const &  address)

Definition at line 566 of file TunnelInterface.cc.

◆ serverAddress() [3/3]

senf::INet6SocketAddress const & senf::emu::TunnelClientInterface::serverAddress ( ) const

Definition at line 576 of file TunnelInterface.cc.

◆ sndBuf() [1/2]

unsigned senf::emu::TunnelClientInterface::sndBuf ( )

Definition at line 619 of file TunnelInterface.cc.

◆ sndBuf() [2/2]

void senf::emu::TunnelClientInterface::sndBuf ( unsigned  sndbuf)

Definition at line 612 of file TunnelInterface.cc.


The documentation for this class was generated from the following files: