added async. gethostbyname support and updated the makefile

This commit is contained in:
Arvid Norberg
2005-08-08 23:32:38 +00:00
parent c1ec7e8830
commit 42f8393ab0
10 changed files with 69 additions and 20 deletions

View File

@@ -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;

View File

@@ -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);

View File

@@ -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