forked from premiere/premiere-libtorrent
support in broadcast_socket to be built without exception support
This commit is contained in:
parent
07b4024024
commit
8b76457b80
|
@ -69,7 +69,11 @@ namespace libtorrent
|
||||||
boost::shared_ptr<datagram_socket> socket;
|
boost::shared_ptr<datagram_socket> socket;
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
udp::endpoint remote;
|
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
|
void on_receive(socket_entry* s, asio::error_code const& ec
|
||||||
|
|
Loading…
Reference in New Issue