1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 19:56:39 +02:00

Epic commit to replace most of the strings in Anope with a single Anope::string class, plus some other little fixes here and there. If you follow 1.9.x development and are testing things, THIS is one of those things that NEEDS testing.

This commit is contained in:
Naram Qashat
2010-07-25 21:58:20 -04:00
parent 15d7f0f6fe
commit ae38212c1c
232 changed files with 7424 additions and 8911 deletions
@@ -79,31 +79,19 @@ class SocketEngineSelect : public SocketEngineBase
s->SetFlag(SF_DEAD);
continue;
}
if (FD_ISSET(s->GetSock(), &rfdset))
{
if (!s->ProcessRead())
{
s->SetFlag(SF_DEAD);
}
}
if (FD_ISSET(s->GetSock(), &wfdset))
{
if (!s->ProcessWrite())
{
s->SetFlag(SF_DEAD);
}
}
if (FD_ISSET(s->GetSock(), &rfdset) && !s->ProcessRead())
s->SetFlag(SF_DEAD);
if (FD_ISSET(s->GetSock(), &wfdset) && !s->ProcessWrite())
s->SetFlag(SF_DEAD);
}
for (std::map<int, Socket *>::iterator it = Sockets.begin(), it_end = Sockets.end(); it != it_end;)
for (std::map<int, Socket *>::iterator it = Sockets.begin(), it_end = Sockets.end(); it != it_end; )
{
Socket *s = it->second;
++it;
if (s->HasFlag(SF_DEAD))
{
delete s;
}
}
}
}
@@ -114,8 +102,9 @@ class ModuleSocketEngineSelect : public Module
SocketEngineSelect *engine;
public:
ModuleSocketEngineSelect(const std::string &modname, const std::string &creator) : Module(modname, creator)
ModuleSocketEngineSelect(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetPermanent(true);
this->SetType(SOCKETENGINE);
@@ -131,4 +120,3 @@ class ModuleSocketEngineSelect : public Module
};
MODULE_INIT(ModuleSocketEngineSelect)