HelloWorld example

Below is a sample HelloWorld program.

HelloFrontEnd.C

 #define _GNU_SOURCE // mandatory to use get_current_dir_name #include <unistd.h> #include "globus_common.h" #include "itso_gram_job.h" #include "itso_gass_copy.h" #include <iostream> #include <fstream> #include "itso_gass_server.C" #include <cc++/socket.h> #include <cstdlib> #ifdef CCXX_NAMESPACE using namespace std; using namespace ost; #endif // static variables used by the FrontEndServer threads. // They are initialized at startup and readonly. // Note that for a real production case, ticket will probably // variable. A locking mechanism with mutex needs to be // used. static char hostname[MAXHOSTNAMELEN]; static long ticket; //************************************************************** ...

Get Enabling Applications for Grid Computing with Globus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.