First stab at timeout estimation

This commit is contained in:
Keith Winstein
2011-08-10 01:51:40 -04:00
parent 79e2898052
commit db2fa133cf
5 changed files with 86 additions and 32 deletions
-5
View File
@@ -48,7 +48,6 @@ namespace Network {
class Transport
{
private:
static const int INITIAL_TIMEOUT = 1000; /* ms, same as TCP */
static const int SEND_INTERVAL = 20; /* ms between frames */
static const int ACK_INTERVAL = 1000; /* ms between empty acks */
static const int HEADER_LEN = 100;
@@ -65,8 +64,6 @@ namespace Network {
Connection connection;
bool server;
uint64_t timestamp( void );
/* sender */
MyState current_state;
@@ -77,8 +74,6 @@ namespace Network {
typename list< TimestampedState<MyState> >::iterator assumed_receiver_state;
int timeout;
/* simple receiver */
list< TimestampedState<RemoteState> > received_states;