Eliminate synthetic packet loss and tab comparison
This commit is contained in:
@@ -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 ) );
|
||||||
|
|
||||||
|
|||||||
@@ -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 );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user