ntester just prints out diff

This commit is contained in:
Keith Winstein
2011-08-10 04:32:25 -04:00
parent e9aeb482df
commit d7433c07d3
3 changed files with 38 additions and 10 deletions
+7 -1
View File
@@ -76,21 +76,27 @@ namespace Network {
/* simple receiver */
list< TimestampedState<RemoteState> > received_states;
MyState last_receiver_state; /* the state we were in when user last queried state */
public:
Transport( MyState &initial_state, RemoteState &initial_remote );
Transport( MyState &initial_state, RemoteState &initial_remote,
const char *key_str, const char *ip, int port );
/* Send data or an ack if necessary.
Returns the number of ms to wait until next event. */
int tick( void );
/* Blocks waiting for a packet. */
void recv( void );
int port( void ) { return connection.port(); }
string get_key( void ) { return connection.get_key(); }
MyState &get_current_state( void ) { return current_state; }
RemoteState &get_remote_state( void ) { return received_states.back().state; }
string get_remote_diff( void );
uint64_t get_remote_state_num( void ) { return received_states.back().num; }
int fd( void ) { return connection.fd(); }