Commit cc96c967 authored by Ivan Tyagov's avatar Ivan Tyagov

Move Pub / Sub code to respective code section.

parent 2f022f17
......@@ -110,11 +110,6 @@ static void stopHandler(int sign)
#ifndef DOING_UNIT_TESTS
int main(int argc, char **argv)
{
// init dictionary only once$
if (SUBSCRIBER_DICT==NULL){
SUBSCRIBER_DICT = *dictAlloc();
}
// parse CLI
handleCLI(argc, argv);
......@@ -181,6 +176,11 @@ int main(int argc, char **argv)
// enable protocol for Pub/Sub
UA_ServerConfig_addPubSubTransportLayer(config, UA_PubSubTransportLayerUDPMP());
// init dictionary only once$
if (SUBSCRIBER_DICT==NULL){
SUBSCRIBER_DICT = *dictAlloc();
}
// set for Pub / Sub the minimal and maximal sampling and publishing intervals
UA_DurationRange rangePublishing = {PUBLISHING_INTERVAL, 3600.0 * 1000.0};
UA_DurationRange rangeSampling = {PUBLISHING_INTERVAL, 24.0 * 3600.0 * 1000.0};
......
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