aboutsummaryrefslogtreecommitdiff
path: root/include/socketengine.h
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Remove include/inspircd_se_config.h and socketengine-specific headersGravatar danieldg2009-09-301-0/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11784 e03df62e-2008-0410-955e-edbf42e46eb7
* Add FD_WANT_SINGLE_WRITE to efficiently replace FD_WANT_POLL_WRITEGravatar danieldg2009-09-261-13/+18
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11762 e03df62e-2008-0410-955e-edbf42e46eb7
* Clean up SocketEngine interface to allow edge-triggered I/O and sockets that ↵Gravatar danieldg2009-09-261-38/+137
| | | | | | do not force readability. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11760 e03df62e-2008-0410-955e-edbf42e46eb7
* Create StreamSocket for IO hooking implementationGravatar danieldg2009-09-211-72/+12
| | | | | | | | | | | | | | 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
* Remove unneeded Extensible inheritance and remove "age" field from classbaseGravatar danieldg2009-09-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11611 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. 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
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Initialising the member we added might be an idea.Gravatar w00t2008-09-071-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10456 e03df62e-2008-0410-955e-edbf42e46eb7
* Fix forward-declaration caused as a result of recent changes.Gravatar w00t2008-09-071-0/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10448 e03df62e-2008-0410-955e-edbf42e46eb7
* Start moving IO hooking from being bufferedsocket based to residing in ↵Gravatar w00t2008-09-071-0/+20
| | | | | | EventHandler, this will pave the way for a generic listener type, and also simplifies a lot of code. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10447 e03df62e-2008-0410-955e-edbf42e46eb7
* Measure bandwidth statistics from the socket engine (kiloBITS per second in, ↵Gravatar brain2008-06-181-0/+10
| | | | | | out, total) and display them in /stats z plus send them via the named pipe to the windows gui git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9918 e03df62e-2008-0410-955e-edbf42e46eb7