removed the last dependency on iostream and lexical cast

This commit is contained in:
Arvid Norberg
2009-08-25 18:13:46 +00:00
parent 8c4cf8bffa
commit 6078dd06b0
18 changed files with 39 additions and 28 deletions

View File

@@ -74,7 +74,7 @@ namespace libtorrent
// send CONNECT
std::back_insert_iterator<std::vector<char> > p(m_buffer);
write_string("CONNECT " + boost::lexical_cast<std::string>(m_remote_endpoint)
write_string("CONNECT " + print_endpoint(m_remote_endpoint)
+ " HTTP/1.0\r\n", p);
if (!m_user.empty())
{