[ns] Problems attaching new agent to a node

2013-05-12 Thread Mohsen Sasaninasab
Hello everybody, I implemented a new agent Clustering in application layer. I put my .cc, .h, and .tcl files in my own directory ("mohsen") under the ns directory. Then I added the new packet type in 'packet.h' under packet_t{} and p_info {}. Also I did necessary changes in ns-default.tcl, ns-pa

[ns] Packet header of application layer protocol

2013-07-06 Thread Mohsen Sasaninasab
Hello, I have added my own protocol to the application layer. Also I have introduced its packet header to the ns2 packet format. However, I do not see my own packet header in the trace file. What is the problem? How can I solve it? Thanks a lot. Mohsen, mohn@gmail.com

Re: [ns] Ns-users Digest, Vol 115, Issue 5, Adding new packet types to NS-2

2013-07-06 Thread Mohsen Sasaninasab
https://wiki.ti5.tu-harburg.de/wsn/ns2/packet

[ns] Class Node: Variable neighbor_

2013-07-07 Thread Mohsen Sasaninasab
Hello, Variable “neighbor_” of class Node is a list of neighboring nodes. Which nodes are considered as the neighbors of a particular node? Is it mean from the MAC layer point of view? Is “neighbor_” a list? How can I read the value or values of “neighbor_”? Thanks a lot. Regards.

[ns] Object of a node in C++ domain

2013-07-17 Thread Mohsen Sasaninasab
Hello, How can I access the object of a node in C++ domain (specially in class UdpAgent) which is built in Otcl domain? Thanks.

[ns] What's the shadow object name of a node in C++ domain?

2013-07-25 Thread Mohsen Sasaninasab
Hello, I have created a node in OTcl domain. How can I access the node in C++ domain? Thanks! Mohsen.