Commit b4aa6065 authored by Pavel Vainerman's avatar Pavel Vainerman

(UNet2): новая версия (реализована посылка)

parent 2ab75282
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 1.0 Version: 1.0
Release: alt23 Release: alt24
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
License: GPL License: GPL
Group: Development/C++ Group: Development/C++
...@@ -191,6 +191,9 @@ rm -f %buildroot%_libdir/*.la ...@@ -191,6 +191,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc %exclude %_pkgconfigdir/libUniSet.pc
%changelog %changelog
* Sun May 01 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt24
- build for new uniset-unet2 version
* Sun May 01 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt23 * Sun May 01 2011 Pavel Vainerman <pv@altlinux.ru> 1.0-alt23
- (uniset-unet2): fixed bug (SEGFAULT with a large number of items) - (uniset-unet2): fixed bug (SEGFAULT with a large number of items)
......
...@@ -209,8 +209,6 @@ void UNetReceiver::real_update() ...@@ -209,8 +209,6 @@ void UNetReceiver::real_update()
shm->initDIterator(ii.dit); shm->initDIterator(ii.dit);
} }
// if( d.id == 121 )
// cerr << "****** save id=" << d.id << " val=" << d.val << endl;
if( ii.iotype == UniversalIO::DigitalInput ) if( ii.iotype == UniversalIO::DigitalInput )
shm->localSaveState(ii.dit,d.id,d.val,shm->ID()); shm->localSaveState(ii.dit,d.id,d.val,shm->ID());
else if( ii.iotype == UniversalIO::AnalogInput ) else if( ii.iotype == UniversalIO::AnalogInput )
...@@ -245,7 +243,7 @@ void UNetReceiver::stop() ...@@ -245,7 +243,7 @@ void UNetReceiver::stop()
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void UNetReceiver::receive() void UNetReceiver::receive()
{ {
cout << myname << ": ******************* receive start" << endl; dlog[Debug::INFO] << myname << ": ******************* receive start" << endl;
ptRecvTimeout.setTiming(recvTimeout); ptRecvTimeout.setTiming(recvTimeout);
while( activated ) while( activated )
{ {
...@@ -256,21 +254,21 @@ void UNetReceiver::receive() ...@@ -256,21 +254,21 @@ void UNetReceiver::receive()
} }
catch( ost::SockException& e ) catch( ost::SockException& e )
{ {
cerr << myname << "(receive): " << e.getString() << endl; dlog[Debug::WARN] << myname << "(receive): " << e.getString() << endl;
} }
catch( UniSetTypes::Exception& ex) catch( UniSetTypes::Exception& ex)
{ {
cerr << myname << "(receive): " << ex << std::endl; dlog[Debug::WARN] << myname << "(receive): " << ex << std::endl;
} }
catch(...) catch(...)
{ {
cerr << myname << "(receive): catch ..." << std::endl; dlog[Debug::WARN] << myname << "(receive): catch ..." << std::endl;
} }
msleep(recvpause); msleep(recvpause);
} }
cout << myname << ": ************* receive FINISH **********" << endl; dlog[Debug::INFO] << myname << ": ************* receive FINISH **********" << endl;
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
bool UNetReceiver::recv() bool UNetReceiver::recv()
......
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