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

#include <Inet4PacketInfo.h>

Inheritance diagram for nidas::util::Inet4PacketInfoX:
Inheritance graph
[legend]

Public Member Functions

 Inet4PacketInfoX ()
 
Inet4SocketAddress getRemoteSocketAddress () const
 The remote address of the packet.
 
void setRemoteSocketAddress (const Inet4SocketAddress &val)
 
virtual Inet4Address getLocalAddress () const
 The local address of the packet.
 
virtual void setLocalAddress (const Inet4Address &val)
 
virtual const Inet4AddressgetDestinationAddress () const
 The destination address of the packet.
 
virtual void setDestinationAddress (const Inet4Address &val)
 
virtual const Inet4NetworkInterfacegetInterface () const
 The interface that the packet was received on.
 
virtual void setInterface (const Inet4NetworkInterface &val)
 
virtual int getFlags () const
 The flags on the received packet.
 
virtual void setFlags (int val)
 

Private Attributes

Inet4SocketAddress _remotesaddr
 
Inet4Address _localaddr
 
Inet4Address _destaddr
 
Inet4NetworkInterface _iface
 
int _flags
 

Constructor & Destructor Documentation

◆ Inet4PacketInfoX()

nidas::util::Inet4PacketInfoX::Inet4PacketInfoX ( )
inline

Member Function Documentation

◆ getDestinationAddress()

virtual const Inet4Address & nidas::util::Inet4PacketInfo::getDestinationAddress ( ) const
inlinevirtualinherited

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 nidas::util::Inet4PacketInfo::_destaddr.

Referenced by nidas::util::SocketImpl::receive().

◆ getFlags()

virtual int nidas::util::Inet4PacketInfo::getFlags ( ) const
inlinevirtualinherited

The flags on the received packet.

See "man 7 ip". It can contain several flags: MSG_EOR, MSG_TRUNC, MSG_CTRUNC, MSG_OOB, MSG_ERRQUEUE.

References nidas::util::Inet4PacketInfo::_flags.

◆ getInterface()

virtual const Inet4NetworkInterface & nidas::util::Inet4PacketInfo::getInterface ( ) const
inlinevirtualinherited

The interface that the packet was received on.

References nidas::util::Inet4PacketInfo::_iface.

Referenced by nidas::util::SocketImpl::receive().

◆ getLocalAddress()

virtual Inet4Address nidas::util::Inet4PacketInfo::getLocalAddress ( ) const
inlinevirtualinherited

The local address of the packet.

For a received packet, it is the address of the local interface that the packet was received on.

References nidas::util::Inet4PacketInfo::_localaddr.

Referenced by nidas::util::SocketImpl::receive().

◆ getRemoteSocketAddress()

Inet4SocketAddress nidas::util::Inet4PacketInfoX::getRemoteSocketAddress ( ) const
inline

The remote address of the packet.

For a received packet, it is the address of the local interface that the packet was sent from.

References _remotesaddr.

◆ setDestinationAddress()

virtual void nidas::util::Inet4PacketInfo::setDestinationAddress ( const Inet4Address & val)
inlinevirtualinherited

◆ setFlags()

virtual void nidas::util::Inet4PacketInfo::setFlags ( int val)
inlinevirtualinherited

◆ setInterface()

virtual void nidas::util::Inet4PacketInfo::setInterface ( const Inet4NetworkInterface & val)
inlinevirtualinherited

◆ setLocalAddress()

virtual void nidas::util::Inet4PacketInfo::setLocalAddress ( const Inet4Address & val)
inlinevirtualinherited

◆ setRemoteSocketAddress()

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

References _remotesaddr.

Member Data Documentation

◆ _destaddr

Inet4Address nidas::util::Inet4PacketInfo::_destaddr
privateinherited

◆ _flags

int nidas::util::Inet4PacketInfo::_flags
privateinherited

◆ _iface

Inet4NetworkInterface nidas::util::Inet4PacketInfo::_iface
privateinherited

◆ _localaddr

Inet4Address nidas::util::Inet4PacketInfo::_localaddr
privateinherited

◆ _remotesaddr

Inet4SocketAddress nidas::util::Inet4PacketInfoX::_remotesaddr
private

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