aboutsummaryrefslogtreecommitdiff
path: root/include/iohook.h
Commit message (Expand)AuthorAgeFilesLines
* Move service types to their own namespace.•••- ServiceProvider is now Service::Provider - DataProvider is now Service::SimpleProvider (the old name does not really make sense now we don't have SERVICE_DATA and the only difference is automatic registration. - Some members of ModuleManager have been elevated to the Service namespace in case other code wants to use them. Gravatar Sadie Powell2026-03-291-2/+2
* Switch modules from reference<> to shared_ptr<> and weak_ptr<>.Gravatar Sadie Powell2026-03-291-1/+1
* Massive rework of how internal service providers work.•••- ServiceType is dead. All modules use RegisterService now. - Modules can implement UnregisterService which is called from DelService now. - Split the service type prefix into its own field. - Renamed Service::name to Service::service_name. This revealed a few bugs. Gravatar Sadie Powell2026-03-021-2/+2
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-2/+3
* Fix using (unsigned) long instead of (s)size_t.Gravatar Sadie Powell2023-01-241-1/+1
* Make implementing OnStreamSocketClose optional in middle hooks.Gravatar Sadie Powell2023-01-211-0/+3
* Use the underlying transport method for pinging idle clients.•••Closes #1998. Gravatar Sadie Powell2023-01-211-0/+5
* Avoid copying shared_ptr<IOHookProvider> when not necessary.Gravatar Sadie Powell2023-01-101-3/+5
* Pass the client/server sockaddr around as a ref instead of a ptr.Gravatar Sadie Powell2022-12-251-1/+1
* Yet more stylistic fixes.Gravatar Sadie Powell2022-12-011-1/+5
* Switch from NULL to nullptr.Gravatar Sadie Powell2022-07-221-1/+1
* Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-4/+4
* Merge branch 'insp3' into master.Gravatar Sadie Powell2022-01-031-0/+1
|\
| * Update copyright headers.Gravatar InspIRCd Robot2021-12-301-0/+1
* | Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-2/+4
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-09-231-0/+3
|\|
| * Add an API for checking if I/O hooks are ready or not.Gravatar Sadie Powell2021-09-221-0/+3
* | Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-05-111-1/+1
|\|
| * Fix a bunch of weird indentation and spacing issues.Gravatar Sadie Powell2021-04-271-1/+1
* | Migrate IOHookProvider from reference<> to std::shared_ptr<>.Gravatar Sadie Powell2021-04-091-4/+6
* | Refactor classbase/CullResult into Cullable/Cullable::Result.Gravatar Sadie Powell2021-03-021-1/+1
* | Use C++11 inline initialisation for class members.Gravatar Sadie Powell2020-02-061-2/+1
|/
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-1/+2
* Various text improvements: consistency, syntax, help and doc updates/fixes.Gravatar Robby2019-02-181-1/+1
* Unite SSL service providers and SSL profile classesGravatar Attila Molnar2017-11-131-2/+2
* Update comments for classes IOHookProvider and IOHookGravatar Attila Molnar2016-08-081-16/+22
* Add support for multiple IOHooks per StreamSocketGravatar Attila Molnar2016-08-081-2/+74
* Pass sendq to OnStreamSocketWriteGravatar Attila Molnar2016-08-081-1/+2
* Convert all code to use StreamSocket::SendQueue•••Let OnStreamSocketWrite see the entire sendq instead of one element at a time Gravatar Attila Molnar2015-06-061-2/+1
* 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. Gravatar Attila Molnar2014-01-221-12/+22
* Create SSLIOHook interface that provides GetCertificate()Gravatar attilamolnar2013-06-071-2/+10
* Create IOHook interface (extracted from Module)Gravatar attilamolnar2013-06-071-0/+71