aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/utils.h
Commit message (Expand)AuthorAgeFilesLines
...
| * m_spanningtree When an IOHook goes away close all pending connections that us...Gravatar attilamolnar2013-08-211-1/+3
* | m_spanningtree Introduce command buildersGravatar attilamolnar2013-08-271-9/+6
* | m_spanningtree Remove duplicate code for sending channel messages from RouteC...Gravatar attilamolnar2013-08-221-4/+4
* | m_spanningtree Implement DoOneToMany() using DoOneToAllButSender()Gravatar attilamolnar2013-08-221-1/+6
* | m_spanningtree Minor cleanup of functionsGravatar attilamolnar2013-08-191-2/+2
* | 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-1/+5
* | m_spanningtree Remove SpanningTreeUtilities* fields and parametersGravatar attilamolnar2013-08-171-0/+2
* | Change command name parameter of OnPostCommand to be a Command*Gravatar attilamolnar2013-06-121-1/+1
* | Merge insp20Gravatar attilamolnar2013-06-061-3/+0
|\|
| * Remove unnecessary string copies and dead codeGravatar attilamolnar2013-06-051-13/+2
* | m_spanningtree Move CacheTimer into utilsGravatar attilamolnar2013-04-211-0/+3
* | Fix building with libc++.•••- Purged std::tr1::strlower (was never used). - Moved std::tr1::insensitive to irc::insensitive. - Added TR1NS macro to point to the correct C++ TR1 namespace. Gravatar Peter Powell2013-04-191-1/+1
* | m_spanningtree Introduce new function to send channel messages•••Use it from the protocol interface and PRIVMSG/NOTICE handlers Unite OnUserNotice and OnUserMessage code into LocalMessage() Gravatar attilamolnar2013-04-121-0/+4
* | m_spanningtree Change TreeServerList to be a set, get rid of a function dedic...Gravatar attilamolnar2013-04-121-5/+1
* | m_spanningtree Utils: Move code that creates a full line from its components ...Gravatar attilamolnar2013-04-121-0/+4
* | m_spanningtree atoi() to ConvToInt() conversion, add const where possible•••Remove two redundant functions from Utils Gravatar attilamolnar2013-04-121-10/+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-4/+1
* | Purge the deprecated hash_map from existance.Gravatar Peter Powell2013-04-011-5/+1
|/
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-7/+3
* m_spanningtree Utils: Remove unused functionsGravatar attilamolnar2012-10-031-8/+0
* 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
* Allow SASL messages to be targeted at the services server•••<sasl target="services.example.net"> will avoid broadcasting all authentication messages across the network, which improves security. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12494 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-02-181-6/+6
* ...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
* Make User::uuid and User::server const•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11962 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-231-3/+0
* Kill ListenSocketBase, use OnAcceptConnection for all new connections•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11950 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-211-17/+1
* Make classbase and refcountbase uncopyable; expand comments on their indended...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11888 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-171-1/+1
* Add server ports to ServerInstance->ports, enable SSL on them using OnHookIO•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11810 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-091-7/+2
* Update Event and Request APIs•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11808 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-081-17/+3
* Add ROUTE_TYPE_MESSAGE and use for PRIVMSG/NOTICE routing•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11791 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-011-0/+2
* Allow multiple autoconnects in a single <autoconnect> tag, fix infinite failover•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11786 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-301-21/+3
* Add explicit reference-counting base class•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11785 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-301-1/+1
* Move destruction logic for User and Spanningtree into cull()•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11783 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-301-0/+4
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-6/+2
* 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-0/+3
* Add <autoconnect> blocks [jackmcbarn]•••Replaces <link:failover> and <link:autoconnect> git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11741 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-171-1/+19
* Make VF_OPTCOMMON module mismatches a fatal link error by default•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11620 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-0/+4
* Replace std::deque with std::vector in spanningtree and related modules•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11593 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-6/+6
* Remove unneeded paramaters from OnAcceptReady•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11581 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-011-1/+1
* win: Last part of support required for VS2010:•••NEEDS COMPILE TESTING ON: gcc3 (if possible), gcc4, vs2008. - Check for vs2010 in hash_map.h - use unordered_map if it exists - change all map creations to: #if defined(WINDOWS) && !defined(HASHMAP_DEPRECATED) // old windows crap #else #if HASHMAP_DEPRECATED // tr1/gcc crap #endif #endif git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11524 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-08-151-1/+1
* Use a FakeUser source for server-sourced commands in spanningtree•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11376 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-05-131-0/+3
* 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
* Implement timeout on outgoing server connections as per our docs <link:timeout>•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10558 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2008-09-191-0/+3
* Remove old listening stuff from spanningtree, use a new derived listener class.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10472 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-09-081-1/+19
* Now builds ok on gcc 4.3, not tested fully. Also UGLY, oh we hate you GCC, wh...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9894 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-06-121-2/+6
* A load of classes dont inherit from classbase, and they should. fix.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9191 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-03-241-1/+1
* Nuke TIMESYNC from orbit \o/•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8998 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-221-9/+1
* fixed more std:: stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8831 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar fez2008-02-051-1/+1