support in broadcast_socket to be built without exception support

This commit is contained in:
Arvid Norberg 2007-12-29 05:14:33 +00:00
parent 07b4024024
commit 8b76457b80
1 changed files with 5 additions and 1 deletions

View File

@ -69,7 +69,11 @@ namespace libtorrent
boost::shared_ptr<datagram_socket> socket;
char buffer[1024];
udp::endpoint remote;
void close() { socket->close(); }
void close()
{
asio::error_code ec;
socket->close(ec);
}
};
void on_receive(socket_entry* s, asio::error_code const& ec