Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
7f2a0283
Commit
7f2a0283
authored
Jun 24, 2021
by
Pavel Vainerman
Committed by
Pavel Vainerman
Jun 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[unet-multicast]: "transport" configure
parent
72d78171
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
UNetExchange.cc
extensions/UNetUDP/UNetExchange.cc
+1
-2
UNetExchange.h
extensions/UNetUDP/UNetExchange.h
+1
-1
No files found.
extensions/UNetUDP/UNetExchange.cc
View file @
7f2a0283
...
...
@@ -80,6 +80,7 @@ UNetExchange::UNetExchange(uniset::ObjectId objId, uniset::ObjectId shmId, const
int
maxProcessingCount
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-maxprocessingcount"
,
it
.
getProp
(
"maxProcessingCount"
),
100
);
int
checkConnectionPause
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-checkconnection-pause"
,
it
.
getProp
(
"checkConnectionPause"
),
10000
);
int
initpause
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-initpause"
,
it
.
getProp
(
"initpause"
),
5000
);
const
string
unet_transport
=
conf
->
getArg2Param
(
"--"
+
prefix
+
"-transport"
,
it
.
getProp
(
"transport"
),
"broadcast"
);
const
std
::
string
updateStrategy
=
conf
->
getArg2Param
(
"--"
+
prefix
+
"-update-strategy"
,
it
.
getProp
(
"updateStrategy"
),
"evloop"
);
UNetReceiver
::
UpdateStrategy
r_upStrategy
=
UNetReceiver
::
strToUpdateStrategy
(
updateStrategy
);
...
...
@@ -124,8 +125,6 @@ UNetExchange::UNetExchange(uniset::ObjectId objId, uniset::ObjectId shmId, const
unetinfo
<<
myname
<<
"(init): read nodes-filter-field='"
<<
n_field
<<
"' nodes-filter-value='"
<<
n_fvalue
<<
"'"
<<
endl
;
const
string
unet_transport
=
conf
->
getArg2Param
(
"--"
+
prefix
+
"-transport"
,
n_it
.
getProp
(
"unet_transport"
),
"broadcast"
);
if
(
unet_transport
==
"multicast"
)
initMulticastTransport
(
n_it
,
n_field
,
n_fvalue
,
prefix
);
else
...
...
extensions/UNetUDP/UNetExchange.h
View file @
7f2a0283
...
...
@@ -61,7 +61,7 @@ namespace uniset
При этом "получатели" работают на одном(!) потоке с использованием событий libev (см. UNetReceiver).
или каждый на своём потоке. Это определяется параметром \b unet_update_strategy.
В текущей версии поддерживается два протокола для обмена udp и multicast. Какой использовать протокол
В текущей версии поддерживается два протокола для обмена
broadcast
udp и multicast. Какой использовать протокол
определяется в настроечной секции параметром \b unet_transport="broadcast" или \b unet_transport="multicast".
По умолчанию "broadcast".
\code
...
...
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