try, catch with boost.asio acceptor
13 Oct
2008
13 Oct
'08
6:21 p.m.
How would someone get this right? retry: try { boost::asio::local::stream_protocol::acceptor acceptor(m_service,endpoint); } catch (boost::system::system_error e) { if(e.code()==boost::system::errc::address_in_use) { std::remove("/tmp/someprogram.socket"); goto retry; } throw; } Etienne
5877
Age (days ago)
5877
Last active (days ago)
0 comments
1 participants
participants (1)
-
Etienne Philip Pretorius