- Proxy is now used for tracker / web seeds / peers connections

- Fixed the compiling errors with latest libtorrent svn
This commit is contained in:
Christophe Dumez 2007-05-02 13:52:29 +00:00
parent f8eea3b779
commit 9093f8e44a
5 changed files with 23 additions and 9 deletions

View file

@ -675,11 +675,18 @@ void bittorrent::disableIPFilter(){
s->set_ip_filter(ip_filter());
}
// Set BT session settings (proxy, user_agent)
// Set BT session settings (user_agent)
void bittorrent::setSessionSettings(session_settings sessionSettings){
s->set_settings(sessionSettings);
}
// Set Proxy
void bittorrent::setProxySettings(proxy_settings proxySettings){
s->set_peer_proxy(proxySettings);
s->set_web_seed_proxy(proxySettings);
s->set_tracker_proxy(proxySettings);
}
// Read alerts sent by the bittorrent session
void bittorrent::readAlerts(){
// look at session alerts and display some infos