nidas
v1.2-1520
|
#include <Inet4PacketInfo.h>
Public Member Functions | |
Inet4PacketInfoX () | |
Inet4SocketAddress | getRemoteSocketAddress () const |
The remote address of the packet. More... | |
void | setRemoteSocketAddress (const Inet4SocketAddress &val) |
virtual Inet4Address | getLocalAddress () const |
The local address of the packet. More... | |
virtual void | setLocalAddress (const Inet4Address &val) |
virtual const Inet4Address & | getDestinationAddress () const |
The destination address of the packet. More... | |
virtual void | setDestinationAddress (const Inet4Address &val) |
virtual const Inet4NetworkInterface & | getInterface () const |
The interface that the packet was received on. More... | |
virtual void | setInterface (const Inet4NetworkInterface &val) |
virtual int | getFlags () const |
The flags on the received packet. More... | |
virtual void | setFlags (int val) |
Private Attributes | |
Inet4SocketAddress | _remotesaddr |
|
inline |
|
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::core::MultipleUDPSockets::connect(), nidas::core::McSocket::connect(), nidas::core::McSocketUDP::connect(), nidas::core::McSocket::connected(), and nidas::core::McSocketUDP::connected().
|
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.
|
inlinevirtualinherited |
The interface that the packet was received on.
References nidas::util::Inet4PacketInfo::_iface.
Referenced by nidas::core::MultipleUDPSockets::connect(), nidas::core::McSocket::connect(), nidas::core::McSocketUDP::connect(), nidas::core::McSocket::connected(), and nidas::core::McSocketUDP::connected().
|
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.
|
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.
Referenced by nidas::core::MultipleUDPSockets::connect(), nidas::core::McSocket::connect(), nidas::core::McSocketUDP::connect(), nidas::core::McSocket::connected(), and nidas::core::McSocketUDP::connected().
|
inlinevirtualinherited |
References nidas::util::Inet4PacketInfo::_destaddr.
Referenced by nidas::util::McSocketMulticaster< SocketTT >::run().
|
inlinevirtualinherited |
References nidas::util::Inet4PacketInfo::_flags.
|
inlinevirtualinherited |
References nidas::util::Inet4PacketInfo::_iface.
|
inlinevirtualinherited |
References nidas::util::Inet4PacketInfo::_localaddr.
Referenced by nidas::util::McSocketMulticaster< SocketTT >::run().
|
inline |
References _remotesaddr.
Referenced by nidas::util::McSocketListener::run(), and nidas::util::McSocketMulticaster< SocketTT >::run().
|
private |
Referenced by getRemoteSocketAddress(), and setRemoteSocketAddress().