aboutsummaryrefslogtreecommitdiff
path: root/include/socketengine.h
Commit message (Expand)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2026-06-051-1/+1
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-3/+4
* Fix some Doxygen comment issues.Gravatar Sadie Powell2023-01-211-1/+1
* Replace SocketEngine::SetReuse with SocketEngine::SetOption.Gravatar Sadie Powell2023-01-171-2/+24
* Merge branch 'insp3' into master.Gravatar Sadie Powell2023-01-011-1/+0
|\
| * Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+0
* | Refactor SocketEngine slightly.•••- Remove pointless shutdown() wrapper. - Remove pointless bounds checking function. - Make Bind and Listen take an EventHandler instead of a fd. - Add nullability attributes to every method. Gravatar Sadie Powell2022-12-251-38/+27
* | More const correctness work.Gravatar Sadie Powell2022-12-081-1/+1
* | Clean up various socket-related code.Gravatar Sadie Powell2022-10-121-7/+2
* | Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-4/+4
* | Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-6/+6
* | Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-2/+3
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-07-011-1/+1
|\|
| * Fix various spelling issues (#1883).•••Signed-off-by: Josh Soref <jsoref@users.noreply.github.com> Gravatar Josh Soref2021-06-211-1/+1
* | Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-7/+7
* | Rip out the SwapInternals method.•••This never really worked correctly and will now be replaced with something better. Gravatar Sadie Powell2021-04-191-5/+0
* | Fix a ton of pedantic compiler warnings.Gravatar Sadie Powell2021-04-041-4/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-311-4/+0
|\|
| * Fix various documentation comments.Gravatar Sadie Powell2021-03-311-4/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-3/+0
|\|
| * Fix a bunch of really obvious unnecessary includes.Gravatar Sadie Powell2021-03-051-3/+0
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2021-03-051-3/+2
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2021-03-051-3/+2
* | Refactor classbase/CullResult into Cullable/Cullable::Result.Gravatar Sadie Powell2021-03-021-1/+1
* | Clean up a bunch of contructors and destructors.Gravatar Sadie Powell2020-11-011-1/+1
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-05-051-4/+4
|\|
| * Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
| * Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-3/+3
* | Merge branch 'insp3' into master.Gravatar Sadie Powell2020-02-191-0/+3
|\|
| * Add HasFd to EventHandler and switch code to use it.Gravatar Sadie Powell2020-02-151-0/+3
* | Use C++11 inline initialisation for class members.Gravatar Sadie Powell2020-02-061-12/+7
|/
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-2/+8
* Add a method for swapping user I/O handlers.Gravatar Peter Powell2019-07-211-0/+6
* Resize the event sets to 2x the CurrentSetSize in ResizeDouble().Gravatar Peter Powell2019-05-141-1/+1
* Pass an irc::socket::sockaddrs to SocketEngine::SendTo().Gravatar Peter Powell2018-01-201-3/+2
* Pass an irc::socket::sockaddrs to SocketEngine::Connect().Gravatar Peter Powell2018-01-201-3/+2
* Deduplicate error handling in the socket engines.Gravatar Peter Powell2017-10-221-0/+3
* Convert GetMaxFds() to size_t and deduplicate setting code.Gravatar Peter Powell2017-10-221-8/+11
* Remove some outdated documentation from the SocketEngine class.Gravatar Peter Powell2017-08-261-11/+1
* Fix a bunch of Doxygen warnings.Gravatar Peter Powell2017-08-261-3/+3
* Improve and centralize socket engine event counters.•••The write counters were close to useless because they were only incremented on a write "event" which is only triggered when writing would block. Read handling was a little more useful in that all reads must happen through the socket engine, so these were happening at the correct time, but we can clean this up by doing it in the SE itself rather than each platform port. This means that both read and write events are now easily and usefully defined as "a syscall of either read or write was attempted". We also count empty read and write events as being an event, because they still were an attempt to poll a socket in some way. This may help to identify "bad" code which is repeatedly trying to read a socket for some reason. Lastly, we check for failed read/write calls, and log them as an error event. A lot of the time, this is how sockets are determined as being disconnected (ie. at read/write time). While we're at it, split Update() in two to make the calls more self-describing. This has no real impact since only one call is made at a time anyway. Gravatar Robin Burchell2017-07-111-4/+12
* Update description of class EventHandler•••Readable() and Writeable() was removed long ago Gravatar Attila Molnar2016-08-111-7/+4
* Replace HandleEvent() references in the SocketEngine documentation with OnEve...Gravatar Attila Molnar2016-08-111-11/+10
* Dispatch EventHandler events to dedicated virtual functions•••Remove enum EventType Gravatar Attila Molnar2015-04-121-26/+13
* Add SocketEngine::WriteV()Gravatar Attila Molnar2015-03-041-0/+35
* Change the number reported by SocketEngine::GetMaxFds() to be informal•••Do not exit if we can't determine it Gravatar Attila Molnar2014-06-071-2/+4
* Call DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)Gravatar Attila Molnar2014-02-091-5/+4
* Change all socketengine methods to be staticGravatar Attila Molnar2014-02-081-31/+33
* Move socketengine stats into a new classGravatar Attila Molnar2014-02-081-13/+44
* Rename SocketEngine::AddFd() and DelFd() to AddFdRef() and DelFdRef()Gravatar Attila Molnar2014-02-081-2/+4