Added "-b" for binding the listening ip addresse.

Throw an error if no listening port is opened.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@386 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-04-09 18:19:14 +00:00
parent 874e46fc64
commit 8bf6a42048
8 changed files with 37 additions and 12 deletions
+5 -3
View File
@@ -62,12 +62,13 @@ public:
void start(Download* d);
void stop(Download* d);
const std::string& get_dns() { return m_dns; }
const std::string& get_dns() { return m_dns; }
void set_dns(const std::string& dns);
void set_port_range(int a, int b) { m_portFirst = a; m_portLast = b; }
void set_port_range(int a, int b) { m_portFirst = a; m_portLast = b; }
void set_listen_ip(const std::string& ip) { m_listenIp = ip; }
void debug_tracker() { m_debugTracker = 0; }
void debug_tracker() { m_debugTracker = 0; }
private:
void receive_http_done(CurlGet* http);
@@ -92,6 +93,7 @@ private:
std::string m_dns;
int m_portFirst;
int m_portLast;
std::string m_listenIp;
int m_debugTracker;
};