added async. gethostbyname support and updated the makefile
This commit is contained in:
@@ -56,6 +56,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "libtorrent/peer_id.hpp"
|
||||
#include "libtorrent/peer.hpp"
|
||||
#include "libtorrent/tracker_manager.hpp"
|
||||
#include "libtorrent/async_gethostbyname.hpp"
|
||||
|
||||
namespace libtorrent
|
||||
{
|
||||
@@ -96,6 +97,7 @@ namespace libtorrent
|
||||
int m_content_length;
|
||||
std::string m_location;
|
||||
|
||||
dns_lookup m_name_lookup;
|
||||
boost::shared_ptr<socket> m_socket;
|
||||
int m_recv_pos;
|
||||
std::vector<char> m_buffer;
|
||||
|
@@ -62,7 +62,7 @@ namespace libtorrent
|
||||
struct request_callback;
|
||||
class tracker_manager;
|
||||
|
||||
address parse_url(std::string const& url);
|
||||
// address parse_url(std::string const& url);
|
||||
|
||||
// encodes a string using the base64 scheme
|
||||
std::string base64encode(const std::string& s);
|
||||
|
@@ -56,6 +56,7 @@ POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "libtorrent/peer_id.hpp"
|
||||
#include "libtorrent/peer.hpp"
|
||||
#include "libtorrent/tracker_manager.hpp"
|
||||
#include "libtorrent/async_gethostbyname.hpp"
|
||||
|
||||
namespace libtorrent
|
||||
{
|
||||
@@ -93,6 +94,7 @@ namespace libtorrent
|
||||
bool parse_announce_response(const char* buf, int ret);
|
||||
bool parse_scrape_response(const char* buf, int ret);
|
||||
|
||||
dns_lookup m_name_lookup;
|
||||
boost::shared_ptr<socket> m_socket;
|
||||
|
||||
// used for time outs
|
||||
|
Reference in New Issue
Block a user