aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/treeserver.cpp
Commit message (Collapse)AuthorAgeFilesLines
* m_spanningtree Call the OnServerLink hook from TreeServer constructorGravatar Attila Molnar2016-04-251-1/+2
|
* m_spanningtree Call the OnServerSplit hook from TreeServer::SQuitInternal() ↵Gravatar Attila Molnar2016-04-251-2/+3
| | | | so it runs for all lost servers
* m_spanningtree Don't try to call the OnServerSplit hook when the module is ↵Gravatar Attila Molnar2016-04-251-1/+2
| | | | being unloaded
* Do not insert FakeUsers into UserManager::uuidlistGravatar Attila Molnar2015-12-071-4/+0
| | | | Inserting them causes FindUUID() and FindNick() to return server users which is not what modules want
* m_spanningtree Use uint64_t for the burst start time to avoid overflowsGravatar Attila Molnar2015-05-131-4/+4
|
* m_spanningtree Clean up commentsGravatar Attila Molnar2015-05-131-3/+3
|
* Merge insp20Gravatar Attila Molnar2015-04-201-1/+1
|\
* | m_spanningtree Pass Server* to the OnServerLink/OnServerSplit eventsGravatar Attila Molnar2015-02-121-2/+2
| |
* | Convert the spanningtree events to use the new cross-module event systemGravatar Attila Molnar2015-02-111-2/+2
| |
* | m_spanningtree Rewrite PING logic to use TimersGravatar Attila Molnar2015-01-251-30/+6
| |
* | m_spanningtree Remove public TreeServer methods that are only called from ↵Gravatar Attila Molnar2015-01-201-12/+2
| | | | | | | | TreeServer
* | m_spanningtree Get rid of some boilerplateGravatar Attila Molnar2015-01-201-33/+0
| | | | | | | | Make methods const while at it
* | Add stdalgo::erase() and use it to simplify codeGravatar Attila Molnar2014-11-011-7/+1
| |
* | Allow fast sid reuse by erasing fake users from UserManager::uuidlist when ↵Gravatar Attila Molnar2014-07-281-0/+4
| | | | | | | | the netsplit is handled, not in cull()
* | m_spanningtree Remove the now needless SplitInProgress workaroundGravatar Attila Molnar2014-07-281-4/+0
| |
* | m_spanningtree Change type of num_lost_* to be unsignedGravatar Attila Molnar2014-07-281-5/+5
| |
* | m_spanningtree Quit all split users in one goGravatar Attila Molnar2014-07-281-6/+7
| |
* | m_spanningtree Mark servers awaiting destruction after being lost in a ↵Gravatar Attila Molnar2014-07-281-2/+6
| | | | | | | | netsplit, add TreeServer::IsDead()
* | m_spanningtree Remove now unused TreeServer::Tidy()Gravatar Attila Molnar2014-07-281-19/+0
| |
* | m_spanningtree Add the TreeServer that split to the cull list and destroy ↵Gravatar Attila Molnar2014-07-281-5/+14
| | | | | | | | everything under it recursively at cull time instead of at squit processing time
* | m_spanningtree Remove split servers from the hash maps in ↵Gravatar Attila Molnar2014-07-281-0/+4
| | | | | | | | TreeServer::SQuitInternal()
* | m_spanningtree Move squit logic into TreeServer from TreeSocketGravatar Attila Molnar2014-07-281-0/+52
| |
* | m_spanningtree Keep track of whether servers are behind a bursting server, ↵Gravatar Attila Molnar2014-07-271-4/+13
| | | | | | | | use it to implement quietbursts
* | m_spanningtree Only mark one server as finished bursting on ENDBURST (or ↵Gravatar Attila Molnar2014-07-271-3/+6
| | | | | | | | PONG), not all behind it
* | m_spanningtree Sync bursting state of servers in SERVERGravatar Attila Molnar2014-07-271-2/+4
| | | | | | | | Also send the time when they started bursting
* | m_spanningtree Add TreeServer::BeginBurst() that marks a server as burstingGravatar Attila Molnar2014-07-271-5/+9
| | | | | | | | Don't mark servers as bursting in the constructor
* | m_spanningtree Use the value of StartBurst to determine whether a server is ↵Gravatar Attila Molnar2014-07-271-4/+5
| | | | | | | | bursting, remove TreeServer::bursting
* | m_spanningtree Add newly created TreeServers to the parent's list in the ↵Gravatar Attila Molnar2014-07-271-0/+1
| | | | | | | | constructor
* | Access local user list via new UserManager::GetLocalUsers() and make ↵Gravatar Attila Molnar2014-07-191-1/+1
| | | | | | | | local_users private
* | m_spanningtree Add a field to TreeServer for storing full version stringsGravatar Attila Molnar2014-06-171-1/+3
| |
* | m_spanningtree Initialize TreeServer::UserCount for TreeRoot in its constructorGravatar Attila Molnar2014-06-141-1/+2
| |
* | Add UserManager::GetUsers()Gravatar Attila Molnar2014-03-151-1/+1
| |
* | Read uline state in spanningtree; remove ConfigReader::ulinesGravatar Attila Molnar2014-01-081-4/+17
| |
* | Move server description field from TreeServer into Server; remove ↵Gravatar Attila Molnar2014-01-051-9/+4
| | | | | | | | OnGetServerDescription hook
* | Introduce Server classGravatar Attila Molnar2014-01-051-7/+21
| | | | | | | | | | - Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine()
* | m_spanningtree Remove vector from TreeServer::QuitUsers()Gravatar Attila Molnar2014-01-051-15/+10
| |
* | Improve UserManager::QuitUser() and related codeGravatar Attila Molnar2014-01-051-8/+2
| | | | | | | | | | | | - 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
* | m_spanningtree Add TreeServer::GetChildren() that replaces ChildCount() and ↵Gravatar attilamolnar2013-08-221-24/+2
| | | | | | | | GetChild()
* | m_spanningtree Change TreeServer::GetSocket() to always return the socket ↵Gravatar attilamolnar2013-08-221-2/+2
| | | | | | | | | | | | | | | | that can be used to talk to the server The only exception is the tree root (us) which has no associated socket (NULL) Add TreeServer::IsRoot() and IsLocal() helpers
* | m_spanningtree Minor cleanup of functionsGravatar attilamolnar2013-08-191-2/+2
| |
* | m_spanningtree Remove SpanningTreeUtilities* fields and parametersGravatar attilamolnar2013-08-171-5/+5
| |
* | Remove $ModDep commentsGravatar attilamolnar2013-08-151-2/+0
| |
* | Change modules to use the MODNAME constant when logging.Gravatar Peter Powell2013-08-041-1/+1
| | | | | | | | | | | | | | | | 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.
* | m_spanningtree Change the type of TreeServer::ServerName to std::stringGravatar attilamolnar2013-07-241-10/+5
| |
* | m_spanningtree Cleanup TreeServer and TreeSocket construction/destructionGravatar attilamolnar2013-07-241-49/+12
| |
* | Fix spacing in calls to LogManager::Log.Gravatar Peter Powell2013-05-191-2/+2
| |
* | m_spanningtree Remove unneeded #includesGravatar attilamolnar2013-04-121-1/+0
| |
* | m_spanningtree Remove encapsulation on UserCount/OperCountGravatar attilamolnar2013-04-121-22/+2
| |
* | Tidy up source files:Gravatar Peter Powell2013-04-121-1/+1
| | | | | | | | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* | Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-2/+2
|/