$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] try, catch with boost.asio acceptor
From: Etienne Philip Pretorius (icewolfhunter_at_[hidden])
Date: 2008-10-13 14:21:07
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