I am trying to implement a tcp like protocol in the application level and need some help regarding the timer implementation. ie how is the timer in tcp implemented(to calculate RTT,retransmission times etc).
Any help regaring this will be very useful, code snippets or some reading material will be greatly appreciated.