summaryrefslogtreecommitdiff
path: root/src/modules/extra/ssl.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-09 19:25:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-09 19:25:10 +0000
commitf559b94fa33063e02b67fe589af04fddc20325ef (patch)
tree64e8ddfd80b7adf9cd38540f8a7e2feb26ef404f /src/modules/extra/ssl.h
parent86563492c758f6428ee6d40ef23323686dab5278 (diff)
Add the stuff required for the InspSocketHook interface
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5890 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/ssl.h')
-rw-r--r--src/modules/extra/ssl.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/modules/extra/ssl.h b/src/modules/extra/ssl.h
index 6768a31a2..e636aad46 100644
--- a/src/modules/extra/ssl.h
+++ b/src/modules/extra/ssl.h
@@ -149,5 +149,42 @@ class ssl_cert
}
};
+class ISHRequest : public Request
+{
+ public:
+ const InspSocket* Sock;
+
+ ISHRequest(Module* Me, Module* Target, const char* rtype, InspSocket* sock) : Request(Me, Target, rtype), Sock(sock)
+ {
+ }
+};
+
+class InspSocketHookRequest : public ISHRequest
+{
+ public:
+ /** Initialize request as a hook message */
+ InspSocketHookRequest(InspSocket* is, Module* Me, Module* Target) : ISHRequest(Me, Target, "IS_HOOK", is)
+ {
+ }
+};
+
+class InspSocketUnhookRequest : public ISHRequest
+{
+ public:
+ /** Initialize request as an unhook message */
+ InspSocketUnhookRequest(InspSocket* is, Module* Me, Module* Target) : ISHRequest(Me, Target, "IS_UNHOOK", is)
+ {
+ }
+};
+
+class InspSocketNameRequest : public ISHRequest
+{
+ public:
+ /** Initialize request as a get name message */
+ InspSocketNameRequest(Module* Me, Module* Target) : ISHRequest(Me, Target, "IS_NAME", NULL)
+ {
+ }
+};
+
#endif