aboutsummaryrefslogtreecommitdiff
path: root/include/socketengine.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2022-12-301-1/+0
|
* Fix various spelling issues (#1883).Gravatar Josh Soref2021-06-211-1/+1
| | | | Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
* Fix various documentation comments.Gravatar Sadie Powell2021-03-311-4/+0
|
* Fix a bunch of really obvious unnecessary includes.Gravatar Sadie Powell2021-03-051-3/+0
|
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-3/+2
|
* Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
|
* Fixes by misspell-fixerGravatar InspIRCd Robot2020-04-211-3/+3
|
* Add HasFd to EventHandler and switch code to use it.Gravatar Sadie Powell2020-02-151-0/+3
|
* 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
|/
* Fix Doxygen syntax errors.Gravatar Peter Powell2012-07-051-1/+24
|
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+17
|
* Fix some of the include guard names (requested by SaberUK)Gravatar Justin Crawford2012-04-141-2/+2
|
* Fixes for bug #12Gravatar Justin Crawford2012-04-141-2/+2
|
* DelFd should not fail, it will leave a bad dangling pointer in that caseGravatar danieldg2010-03-021-10/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12584 e03df62e-2008-0410-955e-edbf42e46eb7
* Floating-point math should have no place in an ircdGravatar danieldg2010-02-121-4/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12442 e03df62e-2008-0410-955e-edbf42e46eb7
* ...because every now and again, i have to do a massive commit.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of socklen_t parameter to Bind, we are using C++ here and can do it ↵Gravatar danieldg2009-11-131-1/+2
| | | | | | other ways git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12129 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove Extensible parent from EventHandlerGravatar danieldg2009-11-061-1/+1
| | | | | | This also fixes SSL certificate support when m_sslinfo is not loaded git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12048 e03df62e-2008-0410-955e-edbf42e46eb7
* Fixes found by removing User inheritance from StreamSocketGravatar danieldg2009-10-251-3/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11975 e03df62e-2008-0410-955e-edbf42e46eb7
* Get rid of OpenTCPSocketGravatar danieldg2009-10-241-20/+17
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11969 e03df62e-2008-0410-955e-edbf42e46eb7