Import of server, all hooked together

This commit is contained in:
Keith Winstein
2011-08-13 17:10:19 -04:00
parent 71e22ee041
commit 577bfc0dae
20 changed files with 355 additions and 70 deletions
+5 -4
View File
@@ -40,13 +40,14 @@ namespace Network {
void push_back( Parser::UserByte s_userbyte ) { actions.push_back( UserEvent( s_userbyte ) ); }
void push_back( Parser::Resize s_resize ) { actions.push_back( UserEvent( s_resize ) ); }
list<Parser::Action *> get_actions( void );
size_t size( void ) { return actions.size(); }
const Parser::Action *get_action( unsigned int i );
/* interface for Network::Transport */
void subtract( UserStream * const prefix );
string diff_from( UserStream const & existing );
void subtract( const UserStream *prefix );
string diff_from( const UserStream &existing );
void apply_string( string diff );
bool operator==( UserStream const &x ) const { return actions == x.actions; }
bool operator==( const UserStream &x ) const { return actions == x.actions; }
};
}