nidas v1.2.3
Public Member Functions | Private Attributes | List of all members
nidas::core::ConnectionInfo Class Reference

Extra information associated with an IOChannel concerning the connection. More...

#include <ConnectionInfo.h>

Public Member Functions

 ConnectionInfo ()
 
 ConnectionInfo (const nidas::util::Inet4SocketAddress &remote, const nidas::util::Inet4Address &dest, const nidas::util::Inet4NetworkInterface iface)
 
nidas::util::Inet4SocketAddress getRemoteSocketAddress () const
 The remote address of connection.
 
void setRemoteSocketAddress (const nidas::util::Inet4SocketAddress &val)
 
const nidas::util::Inet4AddressgetDestinationAddress () const
 The destination address of the packet.
 
void setDestinationAddress (const nidas::util::Inet4Address &val)
 
const nidas::util::Inet4NetworkInterfacegetInterface () const
 The interface that the packet was received on.
 
void setInterface (const nidas::util::Inet4NetworkInterface &val)
 

Private Attributes

nidas::util::Inet4SocketAddress _remotesaddr
 
nidas::util::Inet4Address _destAddr
 
nidas::util::Inet4NetworkInterface _iface
 

Detailed Description

Extra information associated with an IOChannel concerning the connection.

Constructor & Destructor Documentation

◆ ConnectionInfo() [1/2]

nidas::core::ConnectionInfo::ConnectionInfo ( )
inline

◆ ConnectionInfo() [2/2]

nidas::core::ConnectionInfo::ConnectionInfo ( const nidas::util::Inet4SocketAddress & remote,
const nidas::util::Inet4Address & dest,
const nidas::util::Inet4NetworkInterface iface )
inline

Member Function Documentation

◆ getDestinationAddress()

const nidas::util::Inet4Address & nidas::core::ConnectionInfo::getDestinationAddress ( ) const
inline

The destination address of the packet.

For a received unicast packet it will be the address of the local interface. Or the destination address could be a multicast address or a broadcast address.

References _destAddr.

Referenced by nidas::core::MultipleUDPSockets::addClient(), and nidas::dynld::UDPSampleOutput::ConnectionMonitor::addDestination().

◆ getInterface()

const nidas::util::Inet4NetworkInterface & nidas::core::ConnectionInfo::getInterface ( ) const
inline

The interface that the packet was received on.

References _iface.

Referenced by nidas::core::MultipleUDPSockets::addClient().

◆ getRemoteSocketAddress()

nidas::util::Inet4SocketAddress nidas::core::ConnectionInfo::getRemoteSocketAddress ( ) const
inline

◆ setDestinationAddress()

void nidas::core::ConnectionInfo::setDestinationAddress ( const nidas::util::Inet4Address & val)
inline

◆ setInterface()

void nidas::core::ConnectionInfo::setInterface ( const nidas::util::Inet4NetworkInterface & val)
inline

References _iface, and nidas::core::getSample().

◆ setRemoteSocketAddress()

void nidas::core::ConnectionInfo::setRemoteSocketAddress ( const nidas::util::Inet4SocketAddress & val)
inline

Member Data Documentation

◆ _destAddr

nidas::util::Inet4Address nidas::core::ConnectionInfo::_destAddr
private

◆ _iface

nidas::util::Inet4NetworkInterface nidas::core::ConnectionInfo::_iface
private

Referenced by getInterface(), and setInterface().

◆ _remotesaddr

nidas::util::Inet4SocketAddress nidas::core::ConnectionInfo::_remotesaddr
private

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