aboutsummaryrefslogtreecommitdiff
path: root/include/bancache.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright headers.Gravatar InspIRCd Robot2024-06-071-1/+1
|
* 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.Gravatar Matt Schatz2019-01-091-1/+1
| | | | | | | | | | - 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>
* Move the definition of the BanCacheHit constructor into the source file from ↵Gravatar Attila Molnar2014-06-131-4/+1
| | | | the header
* 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 ↵Gravatar Attila Molnar2014-06-131-5/+1
| | | | object containing it
* Fix building with libc++.Gravatar Peter Powell2013-04-191-1/+1
| | | | | | - 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.
* Tidy up source files:Gravatar Peter Powell2013-04-121-4/+1
| | | | | | - Use #pragma once instead of include guards. - Move header files in src/modules to include/modules. - Fixed various spacing issues.
* BanCache: Move expiration code into a function, call it from RemoveEntries()Gravatar attilamolnar2013-04-101-1/+2
|
* BanCache: Remove BanCacheManager::RehashCache()Gravatar attilamolnar2013-04-101-1/+0
| | | | The function was never called
* BanCache: Simplify BanCacheManager::RemoveEntries()Gravatar attilamolnar2013-04-101-1/+3
|
* BanCache: Remove BanCacheHit::IP field, and BanCacheManager::RemoveHit()Gravatar attilamolnar2013-04-101-6/+2
| | | | The IP field was only used in RemoveHit(), RemoveHit() was only called from GetHit()
* BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one ↵Gravatar attilamolnar2013-04-101-17/+3
| | | | BanCacheHit constructor is enough
* Purge the deprecated hash_map from existance.Gravatar Peter Powell2013-04-011-1/+1
|
* Windows: In-depth cleanup (see details)Gravatar ChrisTX2012-10-121-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -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
* 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.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind now runs completely clean.Gravatar danieldg2009-10-191-5/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove VF_SERVICEPROVIDER, prevent heap allocation of ConfigReaderGravatar danieldg2009-10-181-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11904 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-9/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind cleanup: finish destructor creationGravatar danieldg2009-09-021-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11615 e03df62e-2008-0410-955e-edbf42e46eb7
* win: Last part of support required for VS2010:Gravatar w00t2009-08-151-3/+3
| | | | | | | | | | | | | | | | 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
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. 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
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Second attempt at time() -> SI->Time(), now problems with the original were ↵Gravatar w00t2008-11-011-2/+2
| | | | | | | | | fixed. (SI::TIME was not initialised). 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
* Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵Gravatar w00t2008-10-231-2/+2
| | | | | | dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch from Namegduf converting all instances (where possible) of time() -> ↵Gravatar w00t2008-10-231-2/+2
| | | | | | ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
* Start documenting stuff for 3rd party developers. Comments only, won't ↵Gravatar brain2008-09-201-4/+23
| | | | | | affect feature freeze git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10565 e03df62e-2008-0410-955e-edbf42e46eb7
* fixed std:: stuffGravatar fez2008-02-051-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8825 e03df62e-2008-0410-955e-edbf42e46eb7
* Clear up header insanityGravatar w00t2008-02-031-2/+0
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7
* Make default bancache time one day. This may seem long, but as XLines ↵Gravatar w00t2008-01-161-1/+1
| | | | | | expire, so will the bancache entries, so it'll be fine. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8724 e03df62e-2008-0410-955e-edbf42e46eb7
* Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.Gravatar w00t2008-01-161-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
* Add overridden constructor with specified time in seconds for bancache entry ↵Gravatar w00t2008-01-061-0/+10
| | | | | | to last (we'll probably want to use this for xlines etc) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8644 e03df62e-2008-0410-955e-edbf42e46eb7
* Add bancache expiry stuff, currently records expire 60 seconds after ↵Gravatar w00t2008-01-061-1/+3
| | | | | | creation. Live, we will want perhaps an hour before expiry. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8640 e03df62e-2008-0410-955e-edbf42e46eb7
* Add another BanCache stub. I'm not writing it yet as the storage of entries ↵Gravatar w00t2007-11-151-0/+6
| | | | | | has not yet been finalised. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7
* Rehash method added which frees unused memory from the hash_map. Has a ↵Gravatar brain2007-11-051-0/+2
| | | | | | delete-safe iterator. see comments. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8542 e03df62e-2008-0410-955e-edbf42e46eb7
* Make bancache compile on windowsGravatar brain2007-11-041-0/+4
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8490 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove some unnecessary headers from places, commit working BanCacheManager ↵Gravatar w00t2007-11-041-6/+20
| | | | | | skeleton. Work in progress, ignore it for now. Doesn't do anything, either. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8487 e03df62e-2008-0410-955e-edbf42e46eb7
* You'll hit yourself w00t. You left the ; off both the class decls :pGravatar brain2007-11-031-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8486 e03df62e-2008-0410-955e-edbf42e46eb7
* This won't work yet.Gravatar w00t2007-11-031-0/+32
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7
* Add bancache.coo/h. Nothing in them, yet.Gravatar w00t2007-11-031-0/+17
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7