nidas v1.2.3
|
Ancillary information that can be determined about an incoming UDP packet. More...
#include <Inet4PacketInfo.h>
Public Member Functions | |
Inet4PacketInfo () | |
virtual | ~Inet4PacketInfo () |
virtual Inet4Address | getLocalAddress () const |
The local address of the packet. | |
virtual void | setLocalAddress (const Inet4Address &val) |
virtual const Inet4Address & | getDestinationAddress () const |
The destination address of the packet. | |
virtual void | setDestinationAddress (const Inet4Address &val) |
virtual const Inet4NetworkInterface & | getInterface () 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 | |
Inet4Address | _localaddr |
Inet4Address | _destaddr |
Inet4NetworkInterface | _iface |
int | _flags |
Ancillary information that can be determined about an incoming UDP packet.
Do "man 7 ip" for information.
|
inline |
|
inlinevirtual |
|
inlinevirtual |
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::util::SocketImpl::receive().
|
inlinevirtual |
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 _flags.
|
inlinevirtual |
The interface that the packet was received on.
References _iface.
Referenced by nidas::util::SocketImpl::receive().
|
inlinevirtual |
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 _localaddr.
Referenced by nidas::util::SocketImpl::receive().
|
inlinevirtual |
References _destaddr.
Referenced by nidas::util::SocketImpl::receive().
|
inlinevirtual |
References _flags.
|
inlinevirtual |
References _iface.
Referenced by nidas::util::SocketImpl::receive().
|
inlinevirtual |
References _localaddr.
Referenced by nidas::util::SocketImpl::receive().
|
private |
Referenced by getDestinationAddress(), and setDestinationAddress().
|
private |
Referenced by getFlags(), and setFlags().
|
private |
Referenced by getInterface(), and setInterface().
|
private |
Referenced by getLocalAddress(), and setLocalAddress().