class FloodAgent : public Agent


Inheritance:


Public Methods

virtual int command(int argc, const char * const * argv)
FloodAgent()

Protected Fields

int cache_
Tag cache info set to 1 to enable caching
int debug_
Debug flag
PriQueue* ll_queue
link level output queue
int myaddr_
My address...
MobileNode* node_
Mobile node to which agent is attached; Used to get position information
int num_cached_items_
QueryList* query_list_
Method returns 1 if query seen before. Otherwise returns 0 and adds query info to the list
int seqno_
Sequence number to advertise with...
TagCache* tag_cache_
tags_database* tag_dbase_
Pointer to global tag database
compr_taglist* tag_list_
Local tag list
Trace* tracetarget_
Trace target

Protected Methods

nsaddr_t get_next_hop(nsaddr_t src, int obj_name, int origin_time)
void periodic_callback(Event *e, int level)
method to send periodic advts
void recv(Packet *p, Handler *)
int search_queries_list(nsaddr_t src, int obj_name, int origin_time, int num_hops, nsaddr_t last_hop_id)
void startUp()
Starts off the hierarchy construction protocol
void trace(char* fmt, ...)
Tracing stuff

Inherited from Agent:

Public Fields

Agent instvar agent_port_
Agent instvar dst_addr_
Agent instvar dst_port_
Agent instvar namTrace_
Agent instvar tg_

Public Methods

inline nsaddr_t& addr()
Agent instproc attach-app {s_type}
Agent instproc attach-source {s_type}
Agent instproc attach-tbf { tbf }
Agent instproc attach-trace { file }
virtual void attachApp(Application* app)
virtual void close()
Agent instproc connect d
virtual void connect(nsaddr_t dst)
inline nsaddr_t& daddr()
inline nsaddr_t& dport()
Agent instproc dst-port {}
Agent instproc init args
virtual void listen()
inline nsaddr_t& port()
Agent instproc port {}
void send(Packet* p, Handler* h)
virtual void send(int nbytes)
virtual void send(int sz, AppData *data)
virtual void sendmsg(int sz, AppData*, const char* flags = 0)
virtual void sendmsg(int nbytes, const char *flags = 0)
virtual void sendto(int sz, AppData*, const char* flags = 0)
virtual void sendto(int nbytes, const char* flags, nsaddr_t dst)
Agent instproc set args
void set_pkttype(packet_t pkttype)
virtual int& size()
virtual void timeout(int tno)
Agent instproc traffic-source agent

Protected Fields

Application* app_
Tcl_Channel channel_
int class_
int defttl_
ns_addr_t dst_
int fid_
int flags_
ns_addr_t here_
int off_ip_
OldValue* oldValueList_
int prio_
int size_
char* traceName_
packet_t type_
static int uidcnt_

Protected Methods

void addAgentTrace(const char *name)
Packet* allocpkt(int)
Packet* allocpkt()
virtual int delay_bind_dispatch(const char *varName, const char *localName, TclObject *tracer)
virtual void delay_bind_init_all()
void deleteAgentTrace()
void dumpTracedVars()
virtual void idle()
void initpkt(Packet*)
void insertOldValue(TracedVar *v, const char *value)
OldValue* lookupOldValue(TracedVar *v)
void monitorAgentTrace()
virtual void recvBytes(int bytes)

Private Methods

void flushAVar(TracedVar *v)

Inherited from Connector:

Public Methods

virtual void drop(Packet* p)
inline NsObject* target()

Protected Fields

NsObject* drop_
NsObject* target_

Protected Methods

virtual void drop(Packet* p, const char *s)

Inherited from NsObject:

Public Methods

virtual void debug(const char *fmt, ...)
int isdebug()

Protected Fields

int off_cmn_
int off_flags_

Protected Methods

void handle(Event*)
virtual void reset()

Inherited from Handler:


Documentation

FloodAgent()

virtual int command(int argc, const char * const * argv)

void startUp()
Starts off the hierarchy construction protocol

int seqno_
Sequence number to advertise with...

int myaddr_
My address...

void periodic_callback(Event *e, int level)
method to send periodic advts

PriQueue* ll_queue
link level output queue

void recv(Packet *p, Handler *)

void trace(char* fmt, ...)
Tracing stuff

Trace* tracetarget_
Trace target

tags_database* tag_dbase_
Pointer to global tag database

compr_taglist* tag_list_
Local tag list

QueryList* query_list_
Method returns 1 if query seen before. Otherwise returns 0 and adds query info to the list

int search_queries_list(nsaddr_t src, int obj_name, int origin_time, int num_hops, nsaddr_t last_hop_id)

nsaddr_t get_next_hop(nsaddr_t src, int obj_name, int origin_time)

MobileNode* node_
Mobile node to which agent is attached; Used to get position information

int debug_
Debug flag

int cache_
Tag cache info set to 1 to enable caching

TagCache* tag_cache_

int num_cached_items_


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de