[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Help for target_ variable ...
Hi,Vincenzo,
The variable target_ is defined in the file connector.h, and the member
function "int Connector::command(int argc, const char*const* argv)" in
the file connector.cc provides some commands to assign a value to
target_ in TCL code.
Hope it helps.
Jidong
------- the definition in connector.h -----
class Connector : public NsObject {
public:
Connector();
inline NsObject* target() { return target_; }
virtual void drop(Packet* p);
protected:
virtual void drop(Packet* p, const char *s);
int command(int argc, const char*const* argv);
void recv(Packet*, Handler* callback = 0);
inline void send(Packet* p, Handler* h) { target_->recv(p, h); }
NsObject* target_; // !!! NOTICE HERE !!!
NsObject* drop_; // drop target for this connector
};