Commit 278d4209 authored by Pavel Vainerman's avatar Pavel Vainerman

(UNet2): Переименовал параметр командной строки, чтобы было можно отключать

режим "broadcast" сообщений.
parent 6586e7a6
......@@ -3,7 +3,7 @@
Name: libuniset
Version: 1.0
Release: alt19
Release: alt20
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
......
......@@ -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 = true;
broadcast = false;
break;
case 'v':
......
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