ntester just prints out diff
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user