aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treesocket1.cpp
Commit message (Expand)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2021-08-271-1/+1
* Look up the SSL I/O hook properly in spanningtree.•••Fixes a regression introduced in commit 83bb6951fe. Gravatar Sadie Powell2021-06-011-1/+1
* Update copyright headers.Gravatar InspIRCd Robot2021-03-051-2/+1
* Update copyright headers.Gravatar InspIRCd Robot2020-10-301-1/+1
* Warn about non-local plaintext server connections.Gravatar Sadie Powell2020-08-291-4/+14
* Update copyright headers.Gravatar InspIRCd Robot2020-01-111-2/+6
* Add an event for adding tags to S2S messages.Gravatar Peter Powell2019-07-191-1/+0
* Textual improvements and fixes such as typos, casing, etc. (#1612)Gravatar Robby2019-04-281-2/+2
* Fix broken linking over IPv4 on IPv6 capable systems.•••If no bind address was specified then one would be created which had an incompatible address family to the address that the server was trying to connect to. Gravatar Peter Powell2019-04-251-5/+15
* Fix linking servers with UNIX sockets.•••- Remove the address/port overloads of BeginConnect. - Change DoConnect to take a sockaddrs instead of an address/port. Gravatar Peter Powell2019-04-151-2/+12
* Use CommandBase::Params instead of std::vector<std::string>.•••This is presently a typedef but will soon be replaced with a class that encapsulates both tags and parameters. Gravatar Peter Powell2018-07-261-1/+1
* Rename the spanningtree module header to server.•••In the future we will have server linking modules that are not the spanningtree module. Gravatar Peter Powell2017-12-031-1/+1
* Fix a ton of -Wsign-conversion warnings.Gravatar Peter Powell2017-11-171-2/+2
* Check for errors after calling IOHookProvider::OnAccept()Gravatar Attila Molnar2016-08-241-2/+10
* m_spanningtree Change type of Link::Name to std::string•••Switch to stdalgo::string::equalsci() Gravatar Attila Molnar2016-08-221-1/+1
* Keep multiple IOHookProvider references in class ListenSocket•••This adds the <bind:hook> config option which works together with <bind:ssl> Gravatar Attila Molnar2016-08-081-2/+7
* m_spanningtree Clean up commentsGravatar Attila Molnar2015-05-131-9/+7
* m_spanningtree Get rid of some boilerplate•••Make methods const while at it Gravatar Attila Molnar2015-01-201-5/+0
* Reduce std::string::substr() usage•••substr() returns a new string while erase() and assign() modify the existing one Gravatar Attila Molnar2015-01-101-1/+1
* m_spanningtree Throw a ProtocolException if a server SQUITs a server it shoul...Gravatar Attila Molnar2014-07-281-0/+2
* m_spanningtree Squit dead servers immediately when they die, not at the next ...Gravatar Attila Molnar2014-07-281-0/+1
* m_spanningtree Add the TreeServer that split to the cull list and destroy eve...Gravatar Attila Molnar2014-07-281-2/+1
* m_spanningtree Move squit logic into TreeServer from TreeSocketGravatar Attila Molnar2014-07-281-85/+10
* m_spanningtree Remove now needless TreeSocket::ConnectionFailureShownGravatar Attila Molnar2014-07-281-2/+2
* m_spanningtree Keep track of whether we've sent our burst, to be used for tra...Gravatar Attila Molnar2014-07-271-2/+2
* m_spanningtree Throw an exception on protocol violations instead of returning...•••Catch CoreExceptions, log and close the link in OnDataReady() Gravatar Attila Molnar2014-04-161-1/+12
* Merge insp20Gravatar Attila Molnar2014-04-071-2/+3
|\
| * m_spanningtree Do pointer comparison before deleting one of the pointers in T...•••While the previous code worked fine in practice, it was incorrect in theory Gravatar Attila Molnar2014-03-021-1/+2
| * m_spanningtree Don't send snotices to servers about remote servers splitting•••The snotice is sent to opers when the SQUIT is processed by their server Gravatar Attila Molnar2014-03-021-1/+1
| * Use server ids when propagating squitsGravatar Adam2013-07-261-2/+2
* | Split IOHook into IOHook and IOHookProvider•••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. Gravatar Attila Molnar2014-01-221-13/+14
* | Improve UserManager::QuitUser() and related code•••- Make operreason optional; NULL means same as quitreason - Remove User::quietquit, it is now handled internally in spanningtree - Send snotice about quitting remote users from spanningtree Gravatar Attila Molnar2014-01-051-0/+5
* | m_spanningtree Minor fixes•••- Handle the case when servers SQUIT themselves - Fix extra space in channel messages Gravatar attilamolnar2013-09-101-1/+7
* | m_spanningtree Introduce command buildersGravatar attilamolnar2013-08-271-3/+3
* | m_spanningtree Allow server-to-server command handlers to specify whether the...•••To make life easier for handlers accepting servers only as source, pass them a TreeServer* so they don't have to call FindServer() Gravatar attilamolnar2013-08-251-2/+2
* | m_spanningtree Add TreeServer::GetChildren() that replaces ChildCount() and G...Gravatar attilamolnar2013-08-221-2/+3
* | m_spanningtree Change TreeServer::GetSocket() to always return the socket tha...•••The only exception is the tree root (us) which has no associated socket (NULL) Add TreeServer::IsRoot() and IsLocal() helpers Gravatar attilamolnar2013-08-221-3/+3
* | m_spanningtree Move all server-to-server command handlers into handler classes•••These commands are not registered in or called by the core. When looking for the handler of a command a new command table is searched first which contains all server-to-server commands. If a handler cannot be found in there, the core command table is consulted. Gravatar attilamolnar2013-08-181-10/+22
* | m_spanningtree Remove SpanningTreeUtilities* fields and parametersGravatar attilamolnar2013-08-171-4/+5
* | Change the syntax of FOREACH macros to be less dumb.Gravatar Adam2013-08-041-1/+1
* | Change modules to use the MODNAME constant when logging.•••The majority of modules were logging with their module name as the log type. There was a few places which were logging to a non-name type but, with the exception of CONFIG, those messages are so uncommon that it doesn't make sense to use a seperate type for them. Gravatar Peter Powell2013-08-041-2/+2
* | m_spanningtree Change the type of TreeServer::ServerName to std::stringGravatar attilamolnar2013-07-241-3/+1
* | m_spanningtree Cleanup TreeServer and TreeSocket construction/destructionGravatar attilamolnar2013-07-241-16/+5
* | Create IOHook interface (extracted from Module)Gravatar attilamolnar2013-06-071-1/+2
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-2/+2
* | m_spanningtree Remove unneeded #includesGravatar attilamolnar2013-04-121-4/+0
* | m_spanningtree Change both prefix and first parameter of SQUIT to be a SIDGravatar attilamolnar2013-04-121-2/+2
* | 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-1/+1
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-2/+2
|/
* Fix more undefined behavior caused by referencing the returned buffer by std:...•••See 83c7cc45daf6fb1f8c36f15297a4657e45a34e88 Gravatar attilamolnar2012-09-301-1/+2