- Home Page of ProjectGuideline.com ›
- Forums ›
- Get Help to do your B.E., and M.E., M.Tech., & M.S., Project in Ns2 ›
- FullTcp upcall
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 of the given “application layer payload”. I want the sending agent to make the call when all bytes have been sent and all acks have been received, so that I can tell the application layer to send another data object. Where do I put the call?
Thanks in advance!
Almost all the protocol elements of ns2 (or agents) will contain two important functions. One is “recv” and the another is “send”. So, in your protocol agent’s code, you have to find a appropriate location (probably, in recv function) to implement the required functionality.