X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fiohook.h;h=1985ea891247e789c8c90d3b5d416a4755a4afd6;hb=c7b938502295ddc5b2c89e0854d8c5c19ede32dc;hp=e99316b99dc1110c02183649a69abb653e50e988;hpb=7770cd985405c7630e9149fc08c314ec824a9c75;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/iohook.h b/include/iohook.h index e99316b99..1985ea891 100644 --- a/include/iohook.h +++ b/include/iohook.h @@ -1,7 +1,8 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2013 Attila Molnar + * Copyright (C) 2019 Robby + * Copyright (C) 2013, 2016-2017 Attila Molnar * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -21,9 +22,9 @@ class StreamSocket; -class IOHookProvider : public ServiceProvider +class IOHookProvider : public refcountbase, public ServiceProvider { - const bool middlehook; + const bool middlehook; public: enum Type @@ -49,7 +50,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 +70,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