valivan601
New Member
- Joined
- Apr 13, 2011
- Messages
- 365
- Reaction score
- 1
Hello anyone can say what is this in my admins log this make server lag and crashes a lot REALLY NEED HELP!!!
maybe this help
server.cpp
Code:
[26/1/2012 11:46:32] (Error - void ServicePort::open(IPAddressList, uint16_t)) NETWORK: O endereço solicitado não é válido no contexto
[26/1/2012 11:53:35] (Error - void ServicePort::open(IPAddressList, uint16_t)) NETWORK: O endereço solicitado não é válido no contexto
maybe this help
server.cpp
Code:
void ServicePort::open(IPAddressList ips, uint16_t port)
{
m_pendingStart = false;
m_serverPort = port;
bool error = false;
IPAddressList pendingIps;
for(IPAddressList::iterator it = ips.begin(); it != ips.end(); ++it)
{
try
{
Acceptor_ptr tmp(new boost::asio::ip::tcp::acceptor(m_io_service,
boost::asio::ip::tcp::endpoint(*it, m_serverPort)));
tmp->set_option(boost::asio::ip::tcp::acceptor::reuse_address(true));
accept(tmp);
m_acceptors.push_back(tmp);
}
catch(std::exception& e)
{
if(m_logError)
{
LOG_MESSAGE(LOGTYPE_ERROR, e.what(), "NETWORK")
pendingIps.push_back(*it);
if(!error)
error = true;
}
}
}
if(error)
{
m_logError = false;
m_pendingStart = true;
Scheduler::getInstance().addEvent(createSchedulerTask(5000, boost::bind(
&ServicePort::services, boost::weak_ptr<ServicePort>(shared_from_this()), pendingIps, m_serverPort)));
}
}
Last edited: