aboutsummaryrefslogtreecommitdiff
path: root/include/socketengine.h
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'insp3' into master.Gravatar Sadie Powell2021-07-011-1/+1
|\
| * Fix various spelling issues (#1883).Gravatar Josh Soref2021-06-211-1/+1
| | | | | | | | Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* | Added -Wshorten-64-to-32 and fixed all warnings.Gravatar Dominic Hamon2021-05-301-7/+7
| |
* | Rip out the SwapInternals method.Gravatar Sadie Powell2021-04-191-5/+0
| | | | | | | | | | This never really worked correctly and will now be replaced with something better.
* | 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.Gravatar Robin Burchell2017-07-111-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Update description of class EventHandlerGravatar Attila Molnar2016-08-111-7/+4
| | | | Readable() and Writeable() was removed long ago
* Replace HandleEvent() references in the SocketEngine documentation with ↵Gravatar Attila Molnar2016-08-111-11/+10
| | | | OnEventHandler*()
* Dispatch EventHandler events to dedicated virtual functionsGravatar Attila Molnar2015-04-121-26/+13
| | | | Remove enum EventType
* Add SocketEngine::WriteV()Gravatar Attila Molnar2015-03-041-0/+35
|
* Change the number reported by SocketEngine::GetMaxFds() to be informalGravatar Attila Molnar2014-06-071-2/+4
| | | | Do not exit if we can't determine it
* 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
|
* Replace SocketEngine::GetName() with INSPIRCD_SOCKETENGINE_NAME defineGravatar Attila Molnar2014-02-081-6/+0
|
* Change SocketEngine functions that do not require an instance to be staticGravatar Attila Molnar2014-02-081-11/+11
|
* New socketengine stuff:Gravatar Adam2014-02-041-4/+17
| | | | | Use vectors that grow as necessary instead of mass allocating everything at once Rework poll engine logic to make sense
* Change type of SocketEngine::CurrentSetSize to size_t from intGravatar Attila Molnar2014-02-041-2/+2
|
* Merge insp20Gravatar attilamolnar2013-08-301-0/+8
|\
| * Use the correct socket related error messages on WindowsGravatar Adam2013-07-141-0/+8
| |
* | Merge insp20Gravatar attilamolnar2013-04-281-0/+18
|\|
| * Move SocketEngine::IgnoreError() code into socketengine.h and add test for ↵Gravatar attilamolnar2013-04-241-0/+13
| | | | | | | | EWOULDBLOCK
| * Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing ↵Gravatar Adam2013-04-161-0/+5
| | | | | | | | WSAEWOULDBLOCK
* | Tidy up source files:Gravatar Peter Powell2013-04-121-5/+1
| | | | | | | | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* | Merge inspircd_{config,version}.h into a single header file.Gravatar Peter Powell2013-04-051-1/+1
| |
* | Whitespace and empty destructor removal, minor coding style changesGravatar attilamolnar2013-04-011-3/+3
|/