Commit 5c54a037 authored by Andreas Kempe's avatar Andreas Kempe

Added host specifier on the command line for the render server.

parent 5fad6c35
#include "mandel_render_srv.h"
#include <mpi.h>
#include <QCoreApplication>
#include <string>
#include <iostream>
using namespace std;
......@@ -18,7 +20,14 @@ int main(int argc, char** argv)
// For the Qt event loop.
QCoreApplication app(argc, argv);
mandel_render_srv srv("192.168.1.2", PORT, id, procs, nullptr);
if (argc != 2)
{
cout << "Usage: mpi-mandel-srv client-address" << endl;
return 1;
}
string host(argv[1]);
mandel_render_srv srv(host, PORT, id, procs, nullptr);
int exit_code = app.exec();
MPI_Finalize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment