aboutsummaryrefslogtreecommitdiff
path: root/include/socketengine.h
Commit message (Expand)AuthorAgeFilesLines
* 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
* 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:•••Use vectors that grow as necessary instead of mass allocating everything at once Rework poll engine logic to make sense Gravatar Adam2014-02-041-4/+17
* 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 EW...Gravatar attilamolnar2013-04-241-0/+13
| * Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing WSAE...Gravatar Adam2013-04-161-0/+5
* | Tidy up source files:•••- Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues. Gravatar Peter Powell2013-04-121-5/+1
* | 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 case•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12584 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-03-021-10/+1
* Floating-point math should have no place in an ircd•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12442 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-121-4/+4
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Get rid of socklen_t parameter to Bind, we are using C++ here and can do it o...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12129 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-11-131-1/+2
* Remove Extensible parent from EventHandler•••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 Gravatar danieldg2009-11-061-1/+1
* Fixes found by removing User inheritance from StreamSocket•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11975 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-251-3/+0
* Get rid of OpenTCPSocket•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11969 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-241-20/+17
* Remove include/inspircd_se_config.h and socketengine-specific headers•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11784 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-301-0/+2
* Add FD_WANT_SINGLE_WRITE to efficiently replace FD_WANT_POLL_WRITE•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11762 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-13/+18
* Clean up SocketEngine interface to allow edge-triggered I/O and sockets that ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11760 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-38/+137
* Create StreamSocket for IO hooking implementation•••Fixes the SSL SendQ bug Removes duplicate code between User and BufferedSocket Simplify SSL module API Simplify EventHandler API (Readable/Writeable moved to SE) Add hook for culled objects to invoke callbacks prior to destructor Replace SocketCull with GlobalCull now that sockets can close themselves Shorten common case of user read/parse/write path: User::Write is now zero-copy up to syscall/SSL invocation User::Read has only two copy/scan passes from read() to ProcessCommand git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11752 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-211-72/+12
* Remove unneeded Extensible inheritance and remove "age" field from classbase•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-1/+1
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Initialising the member we added might be an idea.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10456 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-071-1/+1
* Fix forward-declaration caused as a result of recent changes.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10448 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-071-0/+1