#include "iohook.h"
#include "modules/httpd.h"
-/* $ModDesc: Provides HTTP serving facilities to modules */
-/* $ModDep: modules/httpd.h */
-
class ModuleHttpServer;
static ModuleHttpServer* HttpModule;
{
InternalState = HTTP_SERVE_WAIT_REQUEST;
- FOREACH_MOD(I_OnHookIO, OnHookIO(this, via));
+ FOREACH_MOD(OnHookIO, (this, via));
if (GetIOHook())
GetIOHook()->OnStreamSocketAccept(this, client, server);
}
if (reqbuffer.length() >= 8192)
{
- ServerInstance->Logs->Log("m_httpd", LOG_DEBUG, "m_httpd dropped connection due to an oversized request buffer");
+ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "m_httpd dropped connection due to an oversized request buffer");
reqbuffer.clear();
SetError("Buffer");
}
{
HttpModule = this;
ServerInstance->Modules->AddService(APIImpl);
- ServerInstance->Modules->Attach(I_OnAcceptConnection, this);
}
ModResult OnAcceptConnection(int nfd, ListenSocket* from, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server) CXX11_OVERRIDE