Eliminate synthetic packet loss and tab comparison

This commit is contained in:
Keith Winstein
2011-08-14 02:15:53 -04:00
parent dbdd0d33cd
commit ec4a75dcaf
2 changed files with 2 additions and 7 deletions
-5
View File
@@ -177,11 +177,6 @@ void Connection::send( string &s, bool send_timestamp )
string p = px.tostring( &session ); string p = px.tostring( &session );
/* XXX synthetic packet loss */
if ( rand() < RAND_MAX / 2 ) {
return;
}
ssize_t bytes_sent = sendto( sock, p.data(), p.size(), 0, ssize_t bytes_sent = sendto( sock, p.data(), p.size(), 0,
(sockaddr *)&remote_addr, sizeof( remote_addr ) ); (sockaddr *)&remote_addr, sizeof( remote_addr ) );
+2 -2
View File
@@ -154,10 +154,10 @@ namespace Terminal {
bool operator==( const DrawState &x ) const bool operator==( const DrawState &x ) const
{ {
/* XXX other fields not necessary to compare -- for now */ /* only compare fields that affect display */
return ( width == x.width ) && ( height == x.height ) && ( cursor_col == x.cursor_col ) return ( width == x.width ) && ( height == x.height ) && ( cursor_col == x.cursor_col )
&& ( cursor_row == x.cursor_row ) && ( cursor_visible == x.cursor_visible ) && && ( cursor_row == x.cursor_row ) && ( cursor_visible == x.cursor_visible ) &&
( reverse_video == x.reverse_video ) && ( renditions == x.renditions ) && ( tabs == x.tabs ); ( reverse_video == x.reverse_video ) && ( renditions == x.renditions );
} }
}; };