nidas  v1.2-1520
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. More...
 
void setRemoteSocketAddress (const nidas::util::Inet4SocketAddress &val)
 
const nidas::util::Inet4AddressgetDestinationAddress () const
 The destination address of the packet. More...
 
void setDestinationAddress (const nidas::util::Inet4Address &val)
 
const
nidas::util::Inet4NetworkInterface
getInterface () const
 The interface that the packet was received on. More...
 
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

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

Member Function Documentation

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().

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().

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

References _destAddr.

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

References _iface.

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

References _remotesaddr.

Member Data Documentation

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

Referenced by getInterface(), and setInterface().

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

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