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


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

if ( argc != 3 ) {
  std::cout << "Usage " << argv[0] << " [port] [host]\n";
  return 1;
} 
int port = atoi(argv [1]);
std::string host = argv[2];
	
try {	
 // -> Comment 1
 compp::SocketTcp Client;	
 // -> Comment 2
 Client.Connect(host, port) ; 
 // -> Comment 3
 Client.Shutdown(); 
} catch ( syspp::ComException e ) {
	std::cout <<  "Exception " << e.what() << "\n" ;	
}
 return 0;	
}
