senf::emu::detail::TunnelClientController Class Reference

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

Inheritance diagram for senf::emu::detail::TunnelClientController:

Public Types

typedef TunnelClientInterface Interface
 
- Public Types inherited from senf::emu::detail::TunnelControllerBase
typedef UDPv6ClientSocketHandle Handle
 
typedef EthernetPacket PacketType
 

Public Member Functions

 TunnelClientController (TunnelClientInterface &interface)
 
virtual ~TunnelClientController ()
 
bool established () const
 
void reset ()
 
void serverAddress (INet6SocketAddress const &address)
 
INet6SocketAddress const & serverAddress () const
 
unsigned fragmentationThreshold () const
 
void fragmentationThreshold (unsigned mtu)
 
- Public Member Functions inherited from senf::emu::detail::TunnelControllerBase
PacketType readPacket (Handle &handle)
 
bool writePacket (Handle &handle, PacketType packet)
 
ClockService::clock_type timeout () const
 
void timeout (ClockService::clock_type t)
 
ppi::QueueingAlgorithmqAlgorithm () const
 
void qAlgorithm (ppi::QueueingAlgorithm::ptr qAlgorithm)
 
void dumpInfo (std::ostream &os)
 
unsigned fragmentationCount ()
 

Protected Member Functions

void v_prependTHdr (EthernetPacket &eth) override
 
std::pair< INet6SocketAddress, unsigned > v_getTxInfo (Packet const &eth) const override
 
- Protected Member Functions inherited from senf::emu::detail::TunnelControllerBase
 TunnelControllerBase (TunnelInterfaceBase &interface)
 
virtual ~TunnelControllerBase ()
 
bool sendPkt (Handle &handle, MACAddress const &dstMAC, senf::EthernetPacket pkt)
 
void do_sendPkt (Handle &handle, senf::EthernetPacket &pkt, std::pair< senf::INet6SocketAddress, unsigned > const &txInfo)
 
void do_sendPkt (Handle &handle, senf::EthernetPacket &pkt)
 
void flushQueue (Handle &handle)
 
void sendCtrlPacket (Handle &handle, MACAddress const &dstMAC, boost::uint8_t code)
 
void sendCtrlPacket (Handle &handle, MACAddress const &dstMAC, TunnelCtrlPacket ctrlPacket)
 

Additional Inherited Members

- Static Public Attributes inherited from senf::emu::detail::TunnelControllerBase
static const unsigned TunnelOverhead = 46u
 
- Static Protected Member Functions inherited from senf::emu::detail::TunnelControllerBase
static bool isTunnelCtrlPacket (EthernetPacket const &eth)
 
- Protected Attributes inherited from senf::emu::detail::TunnelControllerBase
senf::Detail::DifferenceSigned seqNoDiff_
 

Detailed Description

Definition at line 252 of file TunnelController.hh.

Member Typedef Documentation

◆ Interface

Constructor & Destructor Documentation

◆ TunnelClientController()

senf::emu::detail::TunnelClientController::TunnelClientController ( TunnelClientInterface interface)

Definition at line 592 of file TunnelController.cc.

◆ ~TunnelClientController()

virtual senf::emu::detail::TunnelClientController::~TunnelClientController ( )
inlinevirtual

Definition at line 259 of file TunnelController.hh.

Member Function Documentation

◆ established()

bool senf::emu::detail::TunnelClientController::established ( ) const

Definition at line 725 of file TunnelController.cc.

◆ fragmentationThreshold() [1/2]

unsigned senf::emu::detail::TunnelClientController::fragmentationThreshold ( ) const

Definition at line 772 of file TunnelController.cc.

◆ fragmentationThreshold() [2/2]

void senf::emu::detail::TunnelClientController::fragmentationThreshold ( unsigned  mtu)

Definition at line 764 of file TunnelController.cc.

◆ reset()

void senf::emu::detail::TunnelClientController::reset ( )

Definition at line 731 of file TunnelController.cc.

◆ serverAddress() [1/2]

void senf::emu::detail::TunnelClientController::serverAddress ( INet6SocketAddress const &  address)

Definition at line 752 of file TunnelController.cc.

◆ serverAddress() [2/2]

senf::INet6SocketAddress const & senf::emu::detail::TunnelClientController::serverAddress ( ) const

Definition at line 758 of file TunnelController.cc.

◆ v_getTxInfo()

std::pair< senf::INet6SocketAddress, unsigned > senf::emu::detail::TunnelClientController::v_getTxInfo ( Packet const &  eth) const
overrideprotectedvirtual

Implements senf::emu::detail::TunnelControllerBase.

Definition at line 686 of file TunnelController.cc.

◆ v_prependTHdr()

void senf::emu::detail::TunnelClientController::v_prependTHdr ( EthernetPacket eth)
overrideprotectedvirtual

Implements senf::emu::detail::TunnelControllerBase.

Definition at line 674 of file TunnelController.cc.


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