[ns] Problem in designing packet format and monitoring its arrival event

2010-08-18 Thread Dhara Buch
Hello,     I went through the FAQs, but my question does not fall in that, so sending this again.     I want to write code for designing the packet format and to monitor the packet arrival event.     In which way the provided class and its events of Otcl can be used in NS2?     If some

Re: [ns] Problem in designing packet format and monitoring its arrival event

2010-08-18 Thread Dhara Buch
Hello, Thanks a lot for the reply. The code seems to be useful to me. Actually, I am just the beginner for ns2. The problem I find is, I dont get how the classes and header files provided by tcl, can be used in the ns2 script commands. More specifically, in the code provided to me, header file

[ns] Problem in designing packet format and monitoring its arrival event

2010-08-17 Thread Dhara Buch
Hello,     I want to write code for designing the packet format and to monitor the packet arrival event.     In which way the provided class and its events of Otcl can be used in NS2?     If some sample code can be provided, then it would be too much helpful to me.     Thanks, Dhara Buch