aboutsummaryrefslogtreecommitdiff
path: root/include/bancache.h
Commit message (Expand)AuthorAgeFilesLines
* Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-2/+2
* Modernize the syntax of various templates.Gravatar Sadie Powell2022-06-231-1/+1
* Abolish the infernal space before accessibility keywords.Gravatar Sadie Powell2022-01-251-2/+2
* Add the final keyword to all remaining classes that can have it.Gravatar Sadie Powell2021-12-201-2/+2
* Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-2/+7
|\
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-2/+7
* | Replace the TR1NS macro with the std namespace.Gravatar Sadie Powell2019-01-251-1/+1
|/
* Improve X-line text consistency.•••- Change any "-Line", ":Line", or "*line" to "-line" throughout the X-line code, comments, and documentation. - Add periods to the end of some notices. - Correct a typo in the Q-line code comments. - Update the filter module documentation (shun addition). Co-authored-by: Robby <robby@chatbelgie.be> Gravatar Matt Schatz2019-01-091-1/+1
* Move the definition of the BanCacheHit constructor into the source file from ...Gravatar Attila Molnar2014-06-131-4/+1
* Move BanCacheHash typedef into the private part of BanCacheManagerGravatar Attila Molnar2014-06-131-5/+4
* Change allocation of BanCacheManager::BanHash to be physically part of the ob...Gravatar Attila Molnar2014-06-131-5/+1
* 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
* 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
* BanCache: Move expiration code into a function, call it from RemoveEntries()Gravatar attilamolnar2013-04-101-1/+2
* BanCache: Remove BanCacheManager::RehashCache()•••The function was never called Gravatar attilamolnar2013-04-101-1/+0
* BanCache: Simplify BanCacheManager::RemoveEntries()Gravatar attilamolnar2013-04-101-1/+3
* BanCache: Remove BanCacheHit::IP field, and BanCacheManager::RemoveHit()•••The IP field was only used in RemoveHit(), RemoveHit() was only called from GetHit() Gravatar attilamolnar2013-04-101-6/+2
* BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one BanCa...Gravatar attilamolnar2013-04-101-17/+3
* Purge the deprecated hash_map from existance.Gravatar Peter Powell2013-04-011-1/+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-4/+0
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
* Fixes for bug #12Gravatar Justin Crawford2012-04-141-2/+2
* ...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
* Valgrind now runs completely clean.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-191-5/+1
* Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReader•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-181-2/+2
* 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-9/+3
* Valgrind cleanup: finish destructor creation•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-0/+4
* 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-3/+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
* Second attempt at time() -> SI->Time(), now problems with the original were f...•••Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-011-2/+2
* Revert earlier time() -> SI->Time() diff for now, this causes problems with d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-2/+2
* Patch from Namegduf converting all instances (where possible) of time() -> Se...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-2/+2
* Start documenting stuff for 3rd party developers. Comments only, won't affect...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10565 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-09-201-4/+23
* fixed std:: stuff•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8825 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar fez2008-02-051-1/+1
* Clear up header insanity•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-031-2/+0
* Make default bancache time one day. This may seem long, but as XLines expire,...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8724 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-161-1/+1
* Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-161-0/+3
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* Add overridden constructor with specified time in seconds for bancache entry ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8644 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-061-0/+10
* Add bancache expiry stuff, currently records expire 60 seconds after creation...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8640 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-061-1/+3
* Add another BanCache stub. I'm not writing it yet as the storage of entries h...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-151-0/+6
* Rehash method added which frees unused memory from the hash_map. Has a delete...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8542 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-051-0/+2
* Make bancache compile on windows•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8490 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-041-0/+4
* Remove some unnecessary headers from places, commit working BanCacheManager s...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8487 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-041-6/+20
* You'll hit yourself w00t. You left the ; off both the class decls :p•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8486 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-031-2/+2
* This won't work yet.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-031-0/+32
* Add bancache.coo/h. Nothing in them, yet.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-031-0/+17