First step of sending side of transport layer

This commit is contained in:
Keith Winstein
2011-08-08 18:41:09 -04:00
parent b0b36ddf94
commit cae526fceb
6 changed files with 255 additions and 33 deletions
+6 -18
View File
@@ -4,27 +4,15 @@
#include <string>
#include <assert.h>
using namespace std;
class KeyStroke
{
public:
char letter;
string tostring( void )
{
return string( &letter, 1 );
};
KeyStroke( const string x )
: letter()
{
assert( x.size() == 1 );
letter = x[ 0 ];
}
KeyStroke()
: letter( 0 )
{}
void subtract( KeyStroke * const ) {}
string diff_from( KeyStroke const &, int ) { return ""; }
void apply_string( string ) {}
bool operator==( KeyStroke const & ) const { return true; }
};
#endif