[ns] Creating a new header in NS2

2009-07-14 Thread Eclipse612
Hi everyone, I'm trying to develop a p2p module for NS2, and I've included a new header and packet type into it. These are the things I did: 1) I defined the new header in a couple of files ( a ".h" and a ".cc") using the struct and the mapping class as explained in tutorials, like this: struc

Re: [ns] Creating a new header in NS2

2009-07-17 Thread Eclipse612
Eclipse612 wrote: > > Hi everyone, > > I'm trying to develop a p2p module for NS2, and I've included a new header > and packet type into it. These are the things I did: > > 1) I defined the new header in a couple of files ( a ".h" and a ".cc

Re: [ns] TCP socket support for NS2

2009-10-03 Thread Eclipse612
Hitesh Khandelwal wrote: > > > I want to have TCP socket support for NS2. On searching I came across > gnutella project which implemented TCP sockets for NS2. ( > http://www.cc.gatech.edu/computing/compass/gnutella/install.html). I > followed the instructions given on the page and recompiled N

[ns] Where does TcpFull know no more data needs to be sent?

2009-10-20 Thread Eclipse612
Hello, I'd like to have the FullTcp agent call a certain method at the appropriate time, but can't find the spot to put the call in. The agent is sending a - let's call it that way - "application data object". Of course, it sends little 536-byte segments until the total bytes sent reach the size