aboutsummaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-1/+2
|
* Update copyright headers.Gravatar InspIRCd Robot2020-07-301-0/+1
|
* Fix secure websocket users not being seen as secure.Gravatar Matt Schatz2020-07-271-0/+12
| | | | | | Since a TLS (SSL) module will always be the last IOHook attached to a socket, IsSSL() needs to ignore any Middle IOHooks that may also be attached.
* Update copyright headers.Gravatar InspIRCd Robot2020-04-241-1/+1
|
* More HasFd() conversions.Gravatar Sadie Powell2020-04-091-6/+6
|
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-5/+10
|
* Add a method for swapping user I/O handlers.Gravatar Peter Powell2019-07-211-0/+14
|
* Add an overload of StreamSocket::Close which closes when all data has been ↵Gravatar linuxdaemon2019-05-221-0/+20
| | | | | written. Fixes sending large pages in m_httpd (#1646).
* Fix linking servers with UNIX sockets.Gravatar Peter Powell2019-04-151-23/+2
| | | | | - Remove the address/port overloads of BeginConnect. - Change DoConnect to take a sockaddrs instead of an address/port.
* Redo OnSetEndPoint logic to fix duplicate clones (#1549).Gravatar linuxdaemon2019-01-141-0/+5
|
* Add the family() member to the sockaddrs union.Gravatar Peter Powell2018-07-181-2/+2
|
* Optimize some behaviour in the core (#1476).Gravatar Dylan Frank2018-04-091-1/+1
|
* Pass an irc::socket::sockaddrs to SocketEngine::Connect().Gravatar Peter Powell2018-01-201-1/+1
|
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-3/+3
|
* Add support for multiple IOHooks per StreamSocketGravatar Attila Molnar2016-08-081-27/+101
|
* Call StreamSocket::OnDataReady() from only one placeGravatar Attila Molnar2016-08-081-4/+8
| | | | Call it whenever the recvq gets bigger than it was before the read
* Extract code that reads data into a recvq from StreamSocket::DoRead() into ↵Gravatar Attila Molnar2016-08-081-3/+13
| | | | ReadToRecvQ()
* Extract code that flushes the sendq from StreamSocket::DoWrite() into ↵Gravatar Attila Molnar2016-08-081-10/+15
| | | | FlushSendQ()
* Add StreamSocket::GetModHook() for obtaining the IOHook belonging to a given ↵Gravatar Attila Molnar2016-08-081-0/+10
| | | | | | module Use it to simplify logic in all modules using or providing IOHooks
* Pass sendq to OnStreamSocketWriteGravatar Attila Molnar2016-08-081-1/+1
|
* Clean up indent in StreamSocket::DoWrite()Gravatar Attila Molnar2015-06-061-22/+6
|
* Call OnStreamSocketWrite() once per write eventGravatar Attila Molnar2015-06-061-21/+0
| | | | Do sendq flattening in SSL modules, move code for it into class SSLIOHook from core
* Convert all code to use StreamSocket::SendQueueGravatar Attila Molnar2015-06-061-19/+12
| | | | Let OnStreamSocketWrite see the entire sendq instead of one element at a time
* Remove exception handling from StreamSocket methods calling IOHooksGravatar Attila Molnar2015-04-151-28/+3
| | | | IOHooks don't throw exceptions
* Dispatch EventHandler events to dedicated virtual functionsGravatar Attila Molnar2015-04-121-44/+54
| | | | Remove enum EventType
* Use the native IOVector type in StreamSocket::DoWrite()Gravatar Attila Molnar2015-03-041-1/+1
|
* Remove DISABLE_WRITEV and StreamSocket code for platforms lacking writev() ↵Gravatar Attila Molnar2015-03-041-38/+1
| | | | support
* Add SocketEngine::WriteV()Gravatar Attila Molnar2015-03-041-9/+1
|
* Store iovec array on the stack instead of heap allocating it for the ↵Gravatar Attila Molnar2015-01-101-7/+9
| | | | lifetime of writev() in StreamSocket::DoWrite()
* Remove pointless fd == INT_MAX check from StreamSocket::DoWrite()Gravatar Attila Molnar2015-01-101-1/+1
|
* Remove some unnecessary NULL checksGravatar Attila Molnar2015-01-101-5/+2
|
* Reduce std::string::substr() usageGravatar Attila Molnar2015-01-101-5/+4
| | | | substr() returns a new string while erase() and assign() modify the existing one
* Remove current time parameter of the Timer constructorGravatar Attila Molnar2014-07-101-1/+1
|
* Kill needless #includes in source filesGravatar Attila Molnar2014-06-141-3/+0
|
* Change allocation of InspIRCd::Timers to be physically part of the object ↵Gravatar Attila Molnar2014-03-151-1/+1
| | | | containing it
* Call DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)Gravatar Attila Molnar2014-02-091-2/+0
|
* Change all socketengine methods to be staticGravatar Attila Molnar2014-02-081-19/+19
|
* Change SocketEngine functions that do not require an instance to be staticGravatar Attila Molnar2014-02-081-5/+5
|
* Allow Timers to delete themselves in Tick()Gravatar Attila Molnar2014-01-301-0/+4
|
* Remove whitespace and minor style changesGravatar Attila Molnar2014-01-231-1/+0
|
* Split IOHook into IOHook and IOHookProviderGravatar Attila Molnar2014-01-221-3/+2
| | | | | | | | | | | | | | | | | | Create one IOHook instance for each hooked socket which contains all the hook specific data and read/write/close functions, removing the need for the "issl_session" array in SSL modules. Register instances of the IOHookProvider class in the core and use them to create specialized IOHook instances (OnConnect/OnAccept). Remove the OnHookIO hook, add a dynamic reference to ListenSocket that points to the hook provider (if any) to use for incoming connections on that socket. For outgoing connections modules still have to find the IOHookProvider they want to use themselves but instead of calling AddIOHook(hookprov), now they have to call IOHookProvider::OnConnect() after the connection has been established.
* Clean up CoreExceptionGravatar Attila Molnar2013-12-181-4/+4
| | | | | - Remove default constructor - Replace virtual functions returning C strings with functions returning const std::string refs
* Merge insp20Gravatar attilamolnar2013-08-301-10/+12
|\
| * Use the correct socket related error messages on WindowsGravatar Adam2013-07-141-5/+5
| |
| * Do not send too much data over SSL in one goGravatar attilamolnar2013-07-071-5/+7
| | | | | | | | Some clients fail to read it entirely and the remaining data stays in their read buffer until new data arrives
* | Create IOHook interface (extracted from Module)Gravatar attilamolnar2013-06-071-8/+9
| |
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-4/+4
| |
* | Merge insp20Gravatar attilamolnar2013-04-281-3/+3
|\|
| * Fix m_ssl_gnutls and perhaps some other things on Windows by recognizing ↵Gravatar Adam2013-04-161-3/+3
| | | | | | | | WSAEWOULDBLOCK
* | Modularize DNSGravatar Adam2013-04-261-1/+1
| | | | | | | | | | | | The DNS modules are temporarily in commands/ so they're loaded automatically Thanks to Attila for helping with much of this.