10 Commits

Author SHA1 Message Date
InspIRCd Robot
aa692dc103 Update copyright headers. 2020-01-11 22:14:43 +00:00
Robby
21e7efdadf Various text improvements: consistency, syntax, help and doc updates/fixes. 2019-02-18 09:15:56 +00:00
Attila Molnar
451e687f68 Unite SSL service providers and SSL profile classes 2017-11-13 16:38:30 +00:00
Attila Molnar
40e42a47a7 Update comments for classes IOHookProvider and IOHook 2016-08-08 16:30:04 +02:00
Attila Molnar
87602cd040 Add support for multiple IOHooks per StreamSocket 2016-08-08 15:02:28 +02:00
Attila Molnar
3a11a742ba Pass sendq to OnStreamSocketWrite 2016-08-08 14:28:02 +02:00
Attila Molnar
1f0485039a Convert all code to use StreamSocket::SendQueue
Let OnStreamSocketWrite see the entire sendq instead of one element at a time
2015-06-06 14:31:05 +02:00
Attila Molnar
99f79a4e5c Split IOHook into IOHook and IOHookProvider
Create one IOHook instance for each hooked socket which contains all the
hook specific data and read/write/close functions, removing the need for
the "issl_session" array in SSL modules.

Register instances of the IOHookProvider class in the core and use them to
create specialized IOHook instances (OnConnect/OnAccept).

Remove the OnHookIO hook, add a dynamic reference to ListenSocket that
points to the hook provider (if any) to use for incoming connections on
that socket.

For outgoing connections modules still have to find the IOHookProvider
they want to use themselves but instead of calling AddIOHook(hookprov),
now they have to call IOHookProvider::OnConnect() after the connection
has been established.
2014-01-22 19:10:01 +01:00
attilamolnar
3d6d9cda32 Create SSLIOHook interface that provides GetCertificate() 2013-06-07 01:00:10 +02:00
attilamolnar
79db1cf848 Create IOHook interface (extracted from Module) 2013-06-07 01:00:10 +02:00