#include <iostream>
#include <cstdlib>
#include "SysPlusPlus"
#include "ComPlusPlus"
 
int main (int argc, char *argv [] ) {

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