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
278d4209
Commit
278d4209
authored
Apr 20, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(UNet2): Переименовал параметр командной строки, чтобы было можно отключать
режим "broadcast" сообщений.
parent
6586e7a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
libuniset.spec
conf/libuniset.spec
+4
-1
unet2-tester.cc
extensions/UNet2/unet2-tester.cc
+3
-3
No files found.
conf/libuniset.spec
View file @
278d4209
...
...
@@ -3,7 +3,7 @@
Name: libuniset
Version: 1.0
Release: alt
19
Release: alt
20
Summary: UniSet - library for building distributed industrial control systems
License: GPL
Group: Development/C++
...
...
@@ -191,6 +191,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Wed Apr 20 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt20
- (uniset-unet2-tester): rename command line parameters
* Tue Apr 19 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt19
- a little cleaning
...
...
extensions/UNet2/unet2-tester.cc
View file @
278d4209
...
...
@@ -15,7 +15,7 @@ static struct option longopts[] = {
{
"send-pause"
,
required_argument
,
0
,
'x'
},
{
"timeout"
,
required_argument
,
0
,
't'
},
{
"data-count"
,
required_argument
,
0
,
'c'
},
{
"broadcast"
,
no_argument
,
0
,
'b'
},
{
"
disable-
broadcast"
,
no_argument
,
0
,
'b'
},
{
"verbode"
,
required_argument
,
0
,
'v'
},
{
NULL
,
0
,
0
,
0
}
};
...
...
@@ -72,7 +72,7 @@ int main(int argc, char* argv[])
cout
<<
"[-n|--node-id] id - Set packet header. From 'nodeID'. Default: 1"
<<
endl
;
cout
<<
"[-t|--timeout] msec - timeout for receive. Default: 0 msec (waitup)."
<<
endl
;
cout
<<
"[-x|--send-pause] msec - pause for send packets. Default: 200 msec."
<<
endl
;
cout
<<
"[-b|--
broadcast] - Set broadcast mode. Default: TRUE
"
<<
endl
;
cout
<<
"[-b|--
disable-broadcast] - Disable broadcast mode.
"
<<
endl
;
cout
<<
"[-v|--verbose] - verbose mode."
<<
endl
;
cout
<<
endl
;
return
0
;
...
...
@@ -108,7 +108,7 @@ int main(int argc, char* argv[])
break
;
case
'b'
:
broadcast
=
tru
e
;
broadcast
=
fals
e
;
break
;
case
'v'
:
...
...
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