Commit Graph

27 Commits

Author SHA1 Message Date
ratkosrb 8e60b37b3a East const. 2025-02-14 17:28:08 +02:00
ratkosrb 7f0143607e Disconnect idle connections that don't login. 2025-02-08 18:53:31 +02:00
ratkosrb 0b78793d35 Changes to code style n mangos socket. 2025-02-08 18:25:29 +02:00
ratkosrb 82b57df008 Wait for network threads in destructor.
Thanks to Chero.
2024-11-06 10:04:28 +02:00
_BLU f1d0df64f6 Move crypto related stuff into one location. (#2806)
* Remove unused md5 file

* Move crypto related files to one folder

* Let `BigNumber` return `std::string` not `char*`

* Remove OpenSSL from most headers to avoid include pollution

* Rename `Sha1` to `Sha1Hash`

* Fixup `Sha1Hash`

* Fixup remove headers

* Add `Crypto::Hash::MD5`

* Fixup Add MD5

* Add new style SHA1 and MD5 everywhere
2024-10-22 23:39:52 +03:00
_BLU 61e1ff1a9e Refactoring includes. (#2660)
- Clang-Tidy: Inclusion of deprecated C++ header
- Removed Windows.h from PCH
- Most of the time `#include "Errors.h"` was leading to the wrong file anyways.
2024-06-17 21:04:22 +03:00
_BLU 93392efb28 Make use of smart-pointers for database query results (#2642) 2024-06-07 11:37:33 +03:00
Wall a27f97d2ba Fix XML Whitespace & Comments (#1996) 2023-07-04 12:56:09 +03:00
ratkosrb 841b31e262 Fix disconnect when socket send buffer is full on windows.
The value of errno is 0 on windows in this case, yet WSAGetLastError returns WSAEWOULDBLOCK.
2023-05-03 03:48:42 +03:00
namreeb dfb90c5880 Logging rewrite (#1519) 2022-10-06 16:34:56 +03:00
WobLight 03a2e108ba Replace use of ACE threads (#25) 2021-02-21 14:25:25 +02:00
ratkosrb dd8926f33e Handle running out of file descriptors on linux. (#1062)
Credits to trinity https://github.com/TrinityCore/TrinityCore/commit/d65e1d9a3fc7d597425d6b1fed76d07b22d6008c
2021-02-19 01:56:47 +02:00
ratkosrb f8f01f9291 Attempt to fix hanging on shutdown issue.
Thanks to Gamemechanic.
2020-11-07 03:14:41 +02:00
ratkosrb 618ecbd1d3 Remove obsolete defines. 2020-04-30 19:35:39 +03:00
ratkosrb 4a4f5692cc Remove MANGOS_DLL_DECL and its use.
Credit to cmangos https://github.com/cmangos/mangos-classic/commit/61837298b7ba4bd81fdfbda3d7456d10f296e7cd
2020-02-10 22:17:36 +02:00
ratkosrb e806acc769 Apply clang tidy fixes. (#330) 2019-12-24 06:23:40 +02:00
ratkosrb 25b64c7c25 Add support for MinGW and ARM (#322)
* Add support for mingw compiler and arm platform.

* Change else to elseif in cmake file.

* Add libseh for mingw.

* Fix extractors build.

* Remove static link flags.

* Undo some changes that were not needed.

* Remove debug flag from extractors.

* Add missing readme for libseh.

* Remove not needed acquire on guard.
2019-12-01 15:31:38 +02:00
ratkosrb df76eff1d3 Fix a ton of warnings found using clang. (#308) 2019-11-20 20:27:36 +02:00
ratkosrb 4afe949345 Replace usage of NULL with nullptr. 2019-11-12 19:53:42 +02:00
ratkosrb 3d8e606b3d Add lambda support to EventProcessor.
Credit to TrinityCore https://github.com/TrinityCore/TrinityCore/commit/813f693768ee94864b0d24423b9265bde2c9903d#diff-2d04f7b8f0f9465cedb1ad8e91c0a125
2019-04-08 22:05:43 +03:00
ratkosrb b7b970e886 Code style improvements.
based on https://github.com/cmangos/mangos-classic/commit/ce2527c0b2fdcc8b72d745371ab2f68c81728cc6
2018-12-04 15:30:47 +02:00
ratkosrb 5ae67a525f Remove obsolete header. 2018-09-15 20:36:48 +03:00
ratkosrb 19e3a65426 Fix extractors build (#64)
Credits to Giperion and Crito.
2018-04-25 14:59:16 +03:00
Gemt f2cdc48912 EventProcessor::GetEvents should return const reference instead of value (#61) 2017-03-19 18:20:12 +00:00
Zerix 287fdec16d [Core/Scripts]: Implement Event Based Timers (#43)
* Event based timers. Allows us to use scheduled events rather than the
time diff checking.

* Easier to write, and easier to read for newbies.

* Simplifies code flow and looks far more professional to the trained
eye.

* Comes from TrinityCore so we can cross reference scripting techniques
and start coding in the 21st century on this core..

* As a proof of concept, I have rewritten Lucifron (first boss in MC) to
show an example of how this might look in the future with the other
scripts.
2017-03-16 15:05:04 +00:00
StadenElysium 43452c0d9c License update (#27) 2017-03-15 17:27:20 +00:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00