]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/iohook.h
Allow for skipping clone checking before DNS is complete.
[user/henk/code/inspircd.git] / include / iohook.h
index 87403681d1f530c4925ac86531064f8236eb5804..7c3a0faeef975aa064064409cecbe238291926fb 100644 (file)
@@ -24,8 +24,16 @@ class StreamSocket;
 class IOHook : public ServiceProvider
 {
  public:
-       IOHook(Module* mod, const std::string& Name)
-               : ServiceProvider(mod, Name, SERVICE_IOHOOK) { }
+       enum Type
+       {
+               IOH_UNKNOWN,
+               IOH_SSL
+       };
+
+       const Type type;
+
+       IOHook(Module* mod, const std::string& Name, Type hooktype = IOH_UNKNOWN)
+               : ServiceProvider(mod, Name, SERVICE_IOHOOK), type(hooktype) { }
 
        /** Called immediately after any connection is accepted. This is intended for raw socket
         * processing (e.g. modules which wrap the tcp connection within another library) and provides