X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;ds=sidebyside;f=include%2Fiohook.h;h=85404b09c00dd43601a5475749697268b38e514e;hb=438a088b5176068c753aebe860e2d89fefe09eb4;hp=e99316b99dc1110c02183649a69abb653e50e988;hpb=b9e11915a976daaf790ebc763aff56e19fd49e0f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/iohook.h b/include/iohook.h index e99316b99..85404b09c 100644 --- a/include/iohook.h +++ b/include/iohook.h @@ -21,7 +21,7 @@ class StreamSocket; -class IOHookProvider : public ServiceProvider +class IOHookProvider : public refcountbase, public ServiceProvider { const bool middlehook; @@ -49,7 +49,7 @@ class IOHookProvider : public ServiceProvider */ bool IsMiddle() const { return middlehook; } - /** Called when the provider should hook an incoming connection and act as being on the server side of the connection. + /** Called when the provider should hook an incoming connection and act as being on the server-side of the connection. * This occurs when a bind block has a hook configured and the listener accepts a connection. * @param sock Socket to hook * @param client Client IP address and port @@ -69,7 +69,7 @@ class IOHook : public classbase /** The IOHookProvider for this hook, contains information about the hook, * such as the module providing it and the hook type. */ - IOHookProvider* const prov; + reference prov; /** Constructor * @param provider IOHookProvider that creates this object