converted a whole lot of error strings into error_codes. Documented some previously undocumented alerts as well as all the error codes

This commit is contained in:
Arvid Norberg
2009-06-12 16:40:38 +00:00
parent af25f26538
commit 07bcb3545a
28 changed files with 1181 additions and 476 deletions

View File

@@ -95,15 +95,15 @@ namespace libtorrent
{
std::string hostname;
int port;
char const* error;
error_code ec;
using boost::tuples::ignore;
boost::tie(ignore, ignore, hostname, port, ignore, error)
= parse_url_components(tracker_req().url);
boost::tie(ignore, ignore, hostname, port, ignore)
= parse_url_components(tracker_req().url, ec);
if (error)
if (ec)
{
fail(-1, error);
fail(-1, ec.message().c_str());
return;
}