Re: [asio-users] POSIX EINTR and synchronous calls
Brought to you by:
chris_kohlhoff
From: Simon P. <sim...@vi...> - 2009-03-12 15:28:29
|
Arnaud Devalkeneer wrote, On 03/12/2009 11:22 AM: > Is there anybody who knows a workaround to avoid that asio synchronous > calls are interrupted by interruption (posix EINTR) ? > I am using the version 1.37 of boost and read_some and write_some on tcp > socket. Is there any patch available to make synchronous > calls work and uniterrupted? Since I can not avoid the interruption > generation, I really need your help. Try the boost::asio::read()/write() functions. http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/reference/read.html http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/reference/write.html Simon -- STUN/TURN server --> http://numb.viagenie.ca Interplanetary news --> http://reeves.viagenie.ca vCard 4.0 --> http://www.vcarddav.org |