Process resize entirely on server

This commit is contained in:
Keith Winstein
2012-01-07 03:46:18 -05:00
parent c0845631de
commit ec2469257b
10 changed files with 79 additions and 25 deletions
+4
View File
@@ -42,6 +42,10 @@ void Transport<MyState, RemoteState>::recv( void )
if ( fragments.add_fragment( frag ) ) { /* complete packet */
Instruction inst = fragments.get_assembly();
if ( inst.protocol_version() != MOSH_PROTOCOL_VERSION ) {
throw NetworkException( "Mosh protocol version mismatch", 0 );
}
sender.process_acknowledgment_through( inst.ack_num() );
/* first, make sure we don't already have the new state */