#include <iostream>
#include <cstdlib>
#include <string>
#include "SysPlusPlus"
#include "ComPlusPlus"

class Newserver : public compp::SSrv {

 
public:

 Newserver( const int port ) ;

 std::string  executeTransaction (  const std::string & request );

};

// Constructor must call the right SSrv constructor 
Newserver::Newserver( const int port ) : SSrv ( port )  { }

 
// Implementaion of Server action
std::string  Newserver::executeTransaction (  const std::string & request ) { 

 std::string ret = "Request was " ;
 ret += request;
 ret += "\n";

 return ret;
}


int main (int argc, char *argv [] ) {
	

  Newserver S ( 5678 ) ;

  S.commenceWork();

  return 0;	
}
