Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
osie
Commits
cc96c967
Commit
cc96c967
authored
Apr 17, 2024
by
Ivan Tyagov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move Pub / Sub code to respective code section.
parent
2f022f17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
coupler/server.c
coupler/server.c
+5
-5
No files found.
coupler/server.c
View file @
cc96c967
...
...
@@ -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
};
...
...
Ivan Tyagov
@Tyagov
mentioned in commit
a2040fb6
·
Apr 29, 2024
mentioned in commit
a2040fb6
mentioned in commit a2040fb63b015eea524652e6385d1535f906f0c1
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment