#include "dsdv-packet-queue.h"
Public Types | |
typedef Ipv4RoutingProtocol::ErrorCallback | ErrorCallback |
Error callback function typedef. More... | |
typedef Ipv4RoutingProtocol::UnicastForwardCallback | UnicastForwardCallback |
Unicast forward call back function typedef. More... | |
Public Member Functions | |
QueueEntry (Ptr< const Packet > pa=nullptr, const Ipv4Header &h=Ipv4Header(), UnicastForwardCallback ucb=UnicastForwardCallback(), ErrorCallback ecb=ErrorCallback()) | |
c-tor More... | |
ErrorCallback | GetErrorCallback () const |
Get error callback function. More... | |
Time | GetExpireTime () const |
Get expire time. More... | |
Ipv4Header | GetIpv4Header () const |
Get IP header. More... | |
Ptr< const Packet > | GetPacket () const |
Get packet. More... | |
UnicastForwardCallback | GetUnicastForwardCallback () const |
Get unicast forward callback function. More... | |
bool | operator== (const QueueEntry &o) const |
Compare queue entries. More... | |
void | SetErrorCallback (ErrorCallback ecb) |
Set error callback function. More... | |
void | SetExpireTime (Time exp) |
Set expire time. More... | |
void | SetIpv4Header (Ipv4Header h) |
Set IP header. More... | |
void | SetPacket (Ptr< const Packet > p) |
Set packet. More... | |
void | SetUnicastForwardCallback (UnicastForwardCallback ucb) |
Set unicast forward callback function. More... | |
Private Attributes | |
ErrorCallback | m_ecb |
Error callback. More... | |
Time | m_expire |
Expire time for queue entry. More... | |
Ipv4Header | m_header |
IP header. More... | |
Ptr< const Packet > | m_packet |
Data packet. More... | |
UnicastForwardCallback | m_ucb |
Unicast forward callback. More... | |
DSDV Queue Entry.
Definition at line 47 of file dsdv-packet-queue.h.
Error callback function typedef.
Definition at line 53 of file dsdv-packet-queue.h.
Unicast forward call back function typedef.
Definition at line 51 of file dsdv-packet-queue.h.
|
inline |
c-tor
pa | the packet to create the entry |
h | the Ipv4Header |
ucb | the UnicastForwardCallback function |
ecb | the ErrorCallback function |
Definition at line 63 of file dsdv-packet-queue.h.
|
inline |
Get error callback function.
Definition at line 110 of file dsdv-packet-queue.h.
References m_ecb.
|
inline |
Get expire time.
Definition at line 173 of file dsdv-packet-queue.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsdv::IsExpired::operator()().
|
inline |
Get IP header.
Definition at line 146 of file dsdv-packet-queue.h.
References m_header.
Referenced by ns3::dsdv::PacketQueue::Drop(), ns3::dsdv::PacketQueue::Enqueue(), and ns3::dsdv::RoutingProtocol::SendPacketFromQueue().
Get packet.
Definition at line 128 of file dsdv-packet-queue.h.
References m_packet.
Referenced by ns3::dsdv::PacketQueue::Drop(), ns3::dsdv::PacketQueue::Enqueue(), and ns3::dsdv::RoutingProtocol::SendPacketFromQueue().
|
inline |
Get unicast forward callback function.
Definition at line 92 of file dsdv-packet-queue.h.
References m_ucb.
Referenced by ns3::dsdv::RoutingProtocol::SendPacketFromQueue().
|
inline |
Compare queue entries.
o | QueueEntry to compare |
Definition at line 80 of file dsdv-packet-queue.h.
References ns3::Ipv4Header::GetDestination(), m_expire, m_header, and m_packet.
|
inline |
Set error callback function.
ecb | the error callback |
Definition at line 119 of file dsdv-packet-queue.h.
References m_ecb.
|
inline |
Set expire time.
exp |
Definition at line 164 of file dsdv-packet-queue.h.
References m_expire, and ns3::Simulator::Now().
Referenced by ns3::dsdv::PacketQueue::Enqueue().
|
inline |
Set IP header.
h | The IPv4 header |
Definition at line 155 of file dsdv-packet-queue.h.
References m_header.
Set packet.
p | The current packet |
Definition at line 137 of file dsdv-packet-queue.h.
References m_packet.
|
inline |
Set unicast forward callback function.
ucb | the unicast forward callback |
Definition at line 101 of file dsdv-packet-queue.h.
References m_ucb.
|
private |
Error callback.
Definition at line 186 of file dsdv-packet-queue.h.
Referenced by GetErrorCallback(), and SetErrorCallback().
|
private |
Expire time for queue entry.
Definition at line 188 of file dsdv-packet-queue.h.
Referenced by GetExpireTime(), operator==(), and SetExpireTime().
|
private |
IP header.
Definition at line 182 of file dsdv-packet-queue.h.
Referenced by GetIpv4Header(), operator==(), and SetIpv4Header().
Data packet.
Definition at line 180 of file dsdv-packet-queue.h.
Referenced by GetPacket(), operator==(), and SetPacket().
|
private |
Unicast forward callback.
Definition at line 184 of file dsdv-packet-queue.h.
Referenced by GetUnicastForwardCallback(), and SetUnicastForwardCallback().