Better timestamping -- now send opportunistically

This commit is contained in:
Keith Winstein
2011-09-13 02:08:58 -04:00
parent 823dc58891
commit f3b9c60196
5 changed files with 49 additions and 19 deletions
+3 -2
View File
@@ -78,6 +78,7 @@ namespace Network {
Direction direction;
uint64_t next_seq;
uint16_t saved_timestamp;
uint64_t saved_timestamp_received_at;
uint64_t expected_receiver_seq;
bool RTT_hit;
@@ -90,7 +91,7 @@ namespace Network {
Connection();
Connection( const char *key_str, const char *ip, int port );
void send( string s, bool send_timestamp = true );
void send( string s );
string recv( void );
int fd( void ) { return sock; }
int get_MTU( void ) { return MTU; }
@@ -101,7 +102,7 @@ namespace Network {
uint64_t timeout( void );
double get_SRTT( void ) { return SRTT; }
bool pending_timestamp( void ) { return ( saved_timestamp != uint16_t(-1) ); }
// bool pending_timestamp( void ) { return ( saved_timestamp != uint16_t(-1) ); }
};
}