new logger

scripts are now more error prone
This commit is contained in:
Eduardo Bart
2011-04-22 15:48:02 -03:00
parent e611734396
commit 96e0b1e909
30 changed files with 181 additions and 178 deletions

View File

@@ -30,14 +30,14 @@ Protocol::Protocol() :
m_connection->setErrorCallback(boost::bind(&Protocol::onError, this, _1));
}
void Protocol::connect(const std::string& host, uint16 port, const Callback& callback)
void Protocol::connect(const std::string& host, uint16 port, const SimpleCallback& callback)
{
m_connection->connect(host, port, callback);
}
void Protocol::onError(const boost::system::error_code& error)
{
logError(error.message().c_str());
flogError("PROTOCOL ERROR: ", error.message());
// invalid hostname
// connection timeouted