class StreamSocket;
-class IOHookProvider : public ServiceProvider
+class IOHookProvider : public refcountbase, public ServiceProvider
{
const bool middlehook;
*/
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
/** The IOHookProvider for this hook, contains information about the hook,
* such as the module providing it and the hook type.
*/
- IOHookProvider* const prov;
+ reference<IOHookProvider> prov;
/** Constructor
* @param provider IOHookProvider that creates this object