Commit eafeaa88 authored by Your Name's avatar Your Name
Browse files

.

parent d800b70a
#!/bin/bash
echo "running rc.lsldert01"
run zmq_trigger_subscriber --zmq-proxy tcp://lsldert00.local:5557
......@@ -55,7 +55,7 @@ void parse_options(int argc, const char *argv[]) {
po::options_description desc("Usage:");
desc.add_options()("help,h", "show this message")(
"channel,c", po::value<char>(), "select channel [L or R]")(
"zmq-proxy,p", po::value<char>(), "select zmq pub-sub proxy host and port number: tcp://hostname:port")(
"zmq-proxy,p", po::value<char>(), "select zmq pub-sub proxy host and port number, e.g. tcp://lsldert00.local:5557")(
"lsl-name", po::value<string>(), "set the name of the LSL stream")(
"lsl-type", po::value<string>(), "set the type of the LSL stream")(
"lsl-sourceid", po::value<string>(),
......@@ -78,7 +78,7 @@ void parse_options(int argc, const char *argv[]) {
if (vm.count("proxy"))
proxy = vm["zmq-proxy"].as<string>();
else
proxy = "tcp://lsldert00:5557";
proxy = "";
if (verbose)
cout << "ZMQ proxy is: " << proxy << endl;
......@@ -309,7 +309,8 @@ int main(int argc, const char *argv[]) {
zmq::context_t context(1);
zmq::socket_t ssub(context, ZMQ_SUB);
ssub.connect("tcp://lsldert00:5557");
if (!proxy.empty())
ssub.connect(proxy.c_str());
//ssub.connect("tcp://lsldert00.local:5557");
ssub.setsockopt(ZMQ_SUBSCRIBE, "b", 0);
ssub.setsockopt(ZMQ_SUBSCRIBE, "B", 0);
......
Supports Markdown
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