minor cleanup
This commit is contained in:
parent
647a6dba54
commit
27cbfa164e
|
@ -183,7 +183,8 @@ namespace libtorrent {
|
||||||
|
|
||||||
// this is either 0 or 1, it indicates which m_alerts and m_allocations
|
// this is either 0 or 1, it indicates which m_alerts and m_allocations
|
||||||
// the alert_manager is allowed to use right now. This is swapped when
|
// the alert_manager is allowed to use right now. This is swapped when
|
||||||
// the client calls get_all(), at which point
|
// the client calls get_all(), at which point all of the alert objects
|
||||||
|
// passed to the client will be owned by libtorrent again, and reset.
|
||||||
int m_generation;
|
int m_generation;
|
||||||
|
|
||||||
// this is where all alerts are queued up. There are two heterogenous
|
// this is where all alerts are queued up. There are two heterogenous
|
||||||
|
|
|
@ -778,8 +778,6 @@ namespace libtorrent
|
||||||
// to clear the undead peers
|
// to clear the undead peers
|
||||||
boost::optional<io_service::work> m_work;
|
boost::optional<io_service::work> m_work;
|
||||||
|
|
||||||
typedef std::list<boost::shared_ptr<torrent> > check_queue_t;
|
|
||||||
|
|
||||||
// this maps sockets to their peer_connection
|
// this maps sockets to their peer_connection
|
||||||
// object. It is the complete list of all connected
|
// object. It is the complete list of all connected
|
||||||
// peers.
|
// peers.
|
||||||
|
@ -1140,6 +1138,7 @@ namespace libtorrent
|
||||||
external_ip m_external_ip;
|
external_ip m_external_ip;
|
||||||
|
|
||||||
#ifndef TORRENT_DISABLE_EXTENSIONS
|
#ifndef TORRENT_DISABLE_EXTENSIONS
|
||||||
|
// this is a list to allow extensions to potentially remove themselves.
|
||||||
typedef std::list<boost::shared_ptr<plugin> > ses_extension_list_t;
|
typedef std::list<boost::shared_ptr<plugin> > ses_extension_list_t;
|
||||||
ses_extension_list_t m_ses_extensions;
|
ses_extension_list_t m_ses_extensions;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -886,7 +886,7 @@ namespace aux {
|
||||||
m_alerts.add_extension(ext);
|
m_alerts.add_extension(ext);
|
||||||
ext->added(this);
|
ext->added(this);
|
||||||
}
|
}
|
||||||
#endif
|
#endif // TORRENT_DISABLE_EXTENSIONS
|
||||||
|
|
||||||
#ifndef TORRENT_NO_DEPRECATE
|
#ifndef TORRENT_NO_DEPRECATE
|
||||||
feed_handle session_impl::add_feed(feed_settings const& sett)
|
feed_handle session_impl::add_feed(feed_settings const& sett)
|
||||||
|
|
|
@ -125,7 +125,7 @@ namespace libtorrent { namespace
|
||||||
|
|
||||||
virtual boost::shared_ptr<peer_plugin> new_connection(
|
virtual boost::shared_ptr<peer_plugin> new_connection(
|
||||||
peer_connection* pc);
|
peer_connection* pc);
|
||||||
|
|
||||||
int get_metadata_size() const
|
int get_metadata_size() const
|
||||||
{
|
{
|
||||||
TORRENT_ASSERT(m_metadata_size > 0);
|
TORRENT_ASSERT(m_metadata_size > 0);
|
||||||
|
|
|
@ -662,7 +662,7 @@ void web_peer_connection::on_receive(error_code const& error
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool single_file_request = false;
|
bool single_file_request = false;
|
||||||
if (!m_path.empty() && m_path[m_path.size() - 1] != '/')
|
if (!m_path.empty() && m_path[m_path.size() - 1] != '/')
|
||||||
single_file_request = true;
|
single_file_request = true;
|
||||||
|
|
Loading…
Reference in New Issue