mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-10 14:58:05 +00:00
commit
d214994b12
@ -448,7 +448,7 @@ namespace libtorrent
|
||||
#endif // TORRENT_NO_DEPRECATE
|
||||
|
||||
#ifndef TORRENT_DISABLE_DHT
|
||||
bool is_dht_running() const { return m_dht; }
|
||||
bool is_dht_running() const { return m_dht.get(); }
|
||||
#endif
|
||||
|
||||
#if TORRENT_USE_I2P
|
||||
|
@ -67,9 +67,9 @@ namespace libtorrent {
|
||||
|
||||
struct TORRENT_EXPORT i2p_error_category : boost::system::error_category
|
||||
{
|
||||
virtual const char* name() const;
|
||||
virtual const char* name() const throw();
|
||||
virtual std::string message(int ev) const;
|
||||
virtual boost::system::error_condition default_error_condition(int ev) const
|
||||
virtual boost::system::error_condition default_error_condition(int ev) const throw()
|
||||
{ return boost::system::error_condition(ev, *this); }
|
||||
};
|
||||
|
||||
|
@ -65,9 +65,9 @@ typedef asio::error::error_category socks_error_category;
|
||||
|
||||
struct TORRENT_EXTRA_EXPORT socks_error_category : boost::system::error_category
|
||||
{
|
||||
virtual const char* name() const;
|
||||
virtual const char* name() const throw();
|
||||
virtual std::string message(int ev) const;
|
||||
virtual boost::system::error_condition default_error_condition(int ev) const
|
||||
virtual boost::system::error_condition default_error_condition(int ev) const throw()
|
||||
{ return boost::system::error_condition(ev, *this); }
|
||||
};
|
||||
|
||||
|
@ -888,7 +888,7 @@ namespace libtorrent
|
||||
, std::string const& private_key
|
||||
, std::string const& dh_params
|
||||
, std::string const& passphrase);
|
||||
bool is_ssl_torrent() const { return m_ssl_ctx; }
|
||||
bool is_ssl_torrent() const { return m_ssl_ctx.get(); }
|
||||
boost::asio::ssl::context* ssl_ctx() const { return m_ssl_ctx.get(); }
|
||||
#endif
|
||||
|
||||
|
@ -80,9 +80,9 @@ namespace libtorrent
|
||||
|
||||
struct TORRENT_EXPORT upnp_error_category : boost::system::error_category
|
||||
{
|
||||
virtual const char* name() const;
|
||||
virtual const char* name() const throw();
|
||||
virtual std::string message(int ev) const;
|
||||
virtual boost::system::error_condition default_error_condition(int ev) const
|
||||
virtual boost::system::error_condition default_error_condition(int ev) const throw()
|
||||
{ return boost::system::error_condition(ev, *this); }
|
||||
};
|
||||
|
||||
|
@ -45,7 +45,7 @@ namespace libtorrent
|
||||
|
||||
i2p_error_category i2p_category;
|
||||
|
||||
const char* i2p_error_category::name() const
|
||||
const char* i2p_error_category::name() const throw()
|
||||
{
|
||||
return "i2p error";
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ namespace libtorrent
|
||||
socks_error_category socks_category;
|
||||
|
||||
#if BOOST_VERSION >= 103500
|
||||
const char* socks_error_category::name() const
|
||||
const char* socks_error_category::name() const throw()
|
||||
{
|
||||
return "socks error";
|
||||
}
|
||||
|
@ -1099,7 +1099,7 @@ namespace
|
||||
#if BOOST_VERSION >= 103500
|
||||
|
||||
|
||||
const char* upnp_error_category::name() const
|
||||
const char* upnp_error_category::name() const throw()
|
||||
{
|
||||
return "UPnP error";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user