CCAFFEINE  0.8.8
RunProcess.h
00001 #ifndef RunProcess_seen
00002 #define RunProcess_seen
00003 
00004 #define TESTDEFAULTPORT 3141 //BUGBUG
00005 
00006 
00007 class RunProcess :public virtual ReadCallback {
00008  private:
00009   // a JCPN(Vector) of dc/distributed/ProcessorInfo* 's 
00010   JCPN(Vector)* machines; 
00011   int myProcIndex; // The index of this processor into the machines vector.
00012   SocketConnectionManager* sockets;
00013   JCPN(BufferedReader)* reader;
00014 
00015   void doRedirect();
00016  public:
00017   RunProcess(char* procName, int Port);
00018   void execCommand(int argc, char** argv);
00019   void readReady (Connection* conn);
00020   ~RunProcess() { if (sockets) delete sockets; if (reader) delete reader; };
00021 };
00022 
00023 
00024 #endif // RunProcess_seen