Commit 3ae511e5 authored by ics's avatar ics
Browse files

connect to local ploty2 for front publisher

parent 28b81548
......@@ -78,12 +78,12 @@ void crash_handler(int32 sig) {
// }
//}
void frontThread(std::shared_ptr<cameo::application::Subscriber> responder, string key) {
void frontThread(std::shared_ptr<cameo::application::Subscriber> subscriber, string key) {
string data;
while (true) {
// Wait for a new request.
responder->receive(data);
if (responder->isCanceled() == false) {
subscriber->receive(data);
if (subscriber->isCanceled() == false) {
if (plotwindow.get() != nullptr) {
plotwindow->activateWindow();
}
......@@ -117,6 +117,7 @@ int32 main(int32 argc, char* argv[]) {
DBGMSG("Connected to " << getNomadServerEndPoint());
cameo::Server server(getNomadServerEndPoint());
cameo::Server localserver(getNomadProperty("serverEndpoint"));
// Init cameo application
int32 err = EXIT_SUCCESS;
......@@ -132,7 +133,7 @@ int32 main(int32 argc, char* argv[]) {
DBGMSG("Connected to " << *nomadserver);
// Get nomad server instance
unique_ptr<application::Instance> ploty2 = getPloty2Instance(server);
unique_ptr<application::Instance> ploty2 = getPloty2Instance(localserver);
if (ploty2.get() == 0) {
Error("mainplot", "No ploty2 instance");
err = EXIT_FAILURE;
......@@ -245,12 +246,12 @@ int32 main(int32 argc, char* argv[]) {
}
}
else {
Error("mainplot", "Failed to open temporary file wich contains ploty::PlotPropertyDataMessage", argv[3]);
Error("mainplot", "Failed to open temporary file which contains ploty::PlotPropertyDataMessage", argv[3]);
err = EXIT_FAILURE;
}
}
else {
Error("mainplot", "Failed to open temporary file wich contains ploty::Message", argv[2]);
Error("mainplot", "Failed to open temporary file which contains ploty::Message", argv[2]);
err = EXIT_FAILURE;
}
......
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