#include "Poco/Process.h" #include "Poco/PipeStream.h" #include "Poco/StreamCopier.h" #include #include using Poco::Process; using Poco::ProcessHandle; //1. make a basic executable that represents a render context //get message passing going //incorporate in REST server //fill in the details int main(int argc, char** argv) { std::string cmd("rendercontext"); std::vector args; args.push_back("-ax"); Poco::Pipe outPipe; Poco::Pipe inPipe; ProcessHandle ph = Process::launch(cmd, args, &inPipe, &outPipe, 0); Poco::PipeInputStream istr(outPipe); Poco::PipeOutputStream ostr(inPipe); //std::ofstream ostr("processes.txt"); // while (true){ //Poco::StreamCopier::copyStream(istr,std::cout); ostr<