From e4b716f0d4392f40a20d59e1346beebb1222d95e Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Mon, 22 Aug 2011 13:02:06 -0400 Subject: [PATCH] Add some comments --- networktransport.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/networktransport.cpp b/networktransport.cpp index a24945b..a240494 100644 --- a/networktransport.cpp +++ b/networktransport.cpp @@ -41,6 +41,7 @@ Transport::Transport( MyState &initial_state, RemoteState /* client */ } +/* Try to send roughly two frames per RTT, bounded by limits on frame rate */ template unsigned int Transport::send_interval( void ) { @@ -54,6 +55,7 @@ unsigned int Transport::send_interval( void ) return SEND_INTERVAL; } +/* How many ms can the caller wait before we will have an event (empty ack or next frame)? */ template int Transport::wait_time( void ) { @@ -88,7 +90,7 @@ int Transport::wait_time( void ) } } -/* Send data or an ack if necessary */ +/* Send data or an empty ack if necessary */ template void Transport::tick( void ) { @@ -313,6 +315,7 @@ void Transport::process_acknowledgment_through( uint64_t a // assert( sent_states.front().num == ack_num ); } +/* The sender uses throwaway_num to tell us the earliest received state that we need to keep around */ template void Transport::process_throwaway_until( uint64_t throwaway_num ) {