ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 

Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

DiffusionAgent Class Reference

#include <diffusion.h>

Inheritance diagram for DiffusionAgent:

Agent Connector NsObject TclObject Handler DiffusionProb DiffusionRate List of all members.

Public Member Functions

 DiffusionAgent ()
int command (int argc, const char *const *argv)
void recv (Packet *, Handler *)

Public Attributes

Diff_Routing_Entry routing_table [MAX_DATA_TYPE]

Protected Member Functions

void send_to_dmux (Packet *pkt, Handler *h)
void clear_arp_buf ()
void clear_send_buf ()
void reset ()
void consider_old (Packet *)
void consider_new (Packet *)
void Terminate ()
virtual void Start ()
Packetcreate_packet ()
Packetprepare_message (unsigned int dtype, ns_addr_t to_addr, int msg_type)
virtual void Print_IOlist ()
void DataForSink (Packet *)
void StopSource ()
void MACprepare (Packet *pkt, nsaddr_t next_hop, int type, bool lk_dtct)
void MACsend (Packet *pkt, Time delay=0)
void xmitFailed (Packet *pkt)
void StickPacketInArpBuffer (Packet *pkt)
void ArpBufferCheck ()
void SendBufferCheck ()
void StickPacketInSendBuffer (Packet *p)
void trace (char *fmt,...)

Protected Attributes

int pk_count
int overhead
Pkt_Hash_Table PktTable
ArpBufferTimer arp_buf_timer
ArpBufEntry arp_buf [ARP_BUF_SIZE]
SendBufTimer send_buf_timer
SendBufferEntry send_buf [SEND_BUF_SIZE]


class ArpBufferTimer
class SendBufTimer
void XmitFailedCallback (Packet *pkt, void *data)

Constructor & Destructor Documentation


Member Function Documentation

void DiffusionAgent::ArpBufferCheck   [protected]

void DiffusionAgent::clear_arp_buf   [protected]

void DiffusionAgent::clear_send_buf   [protected]

int DiffusionAgent::command int    argc,
const char *const *    argv

Reimplemented from Agent.

Reimplemented in DiffusionRate.

void DiffusionAgent::consider_new Packet   [protected]

Reimplemented in DiffusionProb, and DiffusionRate.

void DiffusionAgent::consider_old Packet   [protected]

Reimplemented in DiffusionProb, and DiffusionRate.

Packet * DiffusionAgent::create_packet   [protected]

void DiffusionAgent::DataForSink Packet   [protected]

void DiffusionAgent::MACprepare Packet   pkt,
nsaddr_t    next_hop,
int    type,
bool    lk_dtct

void DiffusionAgent::MACsend Packet   pkt,
Time    delay = 0

Packet * DiffusionAgent::prepare_message unsigned int    dtype,
ns_addr_t    to_addr,
int    msg_type

void DiffusionAgent::Print_IOlist   [protected, virtual]

Reimplemented in DiffusionProb, and DiffusionRate.

void DiffusionAgent::recv Packet  ,

Reimplemented from Agent.

Reimplemented in DiffusionProb, and DiffusionRate.

void DiffusionAgent::reset   [protected, virtual]

Reimplemented from NsObject.

Reimplemented in DiffusionRate.

void DiffusionAgent::send_to_dmux Packet   pkt,
Handler   h
[inline, protected]

void DiffusionAgent::SendBufferCheck   [protected]

void DiffusionAgent::Start   [protected, virtual]

Reimplemented in DiffusionProb, and DiffusionRate.

void DiffusionAgent::StickPacketInArpBuffer Packet   pkt [protected]

void DiffusionAgent::StickPacketInSendBuffer Packet   p [protected]

void DiffusionAgent::StopSource   [protected]

void DiffusionAgent::Terminate   [protected]

void DiffusionAgent::trace char *    fmt,

void DiffusionAgent::xmitFailed Packet   pkt [protected]

Reimplemented in DiffusionProb.

Friends And Related Function Documentation

friend class ArpBufferTimer [friend]

friend class SendBufTimer [friend]

void XmitFailedCallback Packet   pkt,
void *    data

Member Data Documentation

ArpBufEntry DiffusionAgent::arp_buf[ARP_BUF_SIZE] [protected]

ArpBufferTimer DiffusionAgent::arp_buf_timer [protected]

ARPTable* DiffusionAgent::arp_table [protected]

NsObject* DiffusionAgent::ll [protected]

bool DiffusionAgent::NEG_REINF_ [protected]

Node* DiffusionAgent::node [protected]

int DiffusionAgent::overhead [protected]

int DiffusionAgent::pk_count [protected]

Pkt_Hash_Table DiffusionAgent::PktTable [protected]

NsObject* DiffusionAgent::port_dmux [protected]

bool DiffusionAgent::POS_REINF_ [protected]

Diff_Routing_Entry DiffusionAgent::routing_table[MAX_DATA_TYPE]

SendBufferEntry DiffusionAgent::send_buf[SEND_BUF_SIZE] [protected]

SendBufTimer DiffusionAgent::send_buf_timer [protected]

Trace* DiffusionAgent::tracetarget [protected]

The documentation for this class was generated from the following files:
This document is generated by doxygen.