Hello,
Look this: The architecture of node: http://bit.ly/11p827i
*6.1.3 Default Nodes and Node Configuration Interface*
*6.2.1.1 C++* *Variables*
Declaration of class Classifier
// ̃/ns/classifier/classifier.h
1 class Classifier : public NsObject {
2 public:
3 Classifier();
4 virtual ̃Classifier();
5 virtual void recv(Packet* p, Handler* h);
6 virtual NsObject* find(Packet*);
7 virtual int classify(Packet *);
8 virtual void clear(int slot);
9 virtual void install(int slot, NsObject*);
10 inline int mshift(int val) {return((val >> shift_) & mask_);}
11 protected:
12 virtual int command(int argc, const char*const* argv);
13 NsObject** slot_;
14 NsObject *default_target_;
15 int shift_;
16 int mask_;
17 };
More information in the book "Introduction to Network Simulator NS2" -
2Edition - http://amzn.to/11p7Uoj
Hugs!
2013/7/25 <[email protected]>
> Send Ns-users mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.isi.edu/mailman/listinfo/ns-users
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ns-users digest..."
>
>
> Today's Topics:
>
> 1. What's the shadow object name of a node in C++ domain?
> (Mohsen Sasaninasab)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 25 Jul 2013 21:11:04 +0330
> From: Mohsen Sasaninasab <[email protected]>
> Subject: [ns] What's the shadow object name of a node in C++ domain?
> To: ns-users <[email protected]>, [email protected], [email protected]
> Message-ID:
> <CAD_5H-YV1L-JOAGs1UfQZ4PL08gqd7=EqHBt-7qKaOvqqrsi=
> [email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hello,
> I have created a node in OTcl domain. How can I access the node in C++
> domain?
> Thanks!
> Mohsen.
>
>
>
> ------------------------------
>
> _______________________________________________
> Ns-users mailing list
> [email protected]
> http://mailman.isi.edu/mailman/listinfo/ns-users
>
>
> End of Ns-users Digest, Vol 115, Issue 21
> *****************************************
>
--
att,
Marllus de Melo Lustosa - Bacharelando em Ciência da Computação - UFPI
Lattes -> http://lattes.cnpq.br/5163268610076256
HomePage -> http://www.marllus.com