From 8dbd80610aee01b8064ca813e1dd7ca44ab3f7b6 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 8 Aug 2016 15:10:43 +0200 Subject: Keep multiple IOHookProvider references in class ListenSocket This adds the config option which works together with --- include/socket.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'include/socket.h') diff --git a/include/socket.h b/include/socket.h index 52294fe71..427ee9fe7 100644 --- a/include/socket.h +++ b/include/socket.h @@ -141,10 +141,21 @@ class CoreExport ListenSocket : public EventHandler /** Human-readable bind description */ std::string bind_desc; - /** The IOHook provider which handles connections on this socket, - * NULL if there is none. + class IOHookProvRef : public dynamic_reference_nocheck + { + public: + IOHookProvRef() + : dynamic_reference_nocheck(NULL, std::string()) + { + } + }; + + typedef TR1NS::array IOHookProvList; + + /** IOHook providers for handling connections on this socket, + * may be empty. */ - dynamic_reference_nocheck iohookprov; + IOHookProvList iohookprovs; /** Create a new listening socket */ -- cgit v1.2.3