Commit Graph

139 Commits

Author SHA1 Message Date
Shauren
dfd2660a85 Core/Misc: Added compatibility layer for boost 1.66 and future std:: networking stuff
* Based on work done by @dimiandre in PR #21173

Closes #21171
Closes #21173
2018-01-06 01:21:59 +01:00
vincent-michael
7d00ae4045 Update copyright note for 2018
auto happy = new year(2018);
2018-01-01 00:40:17 +01:00
Naios
1285347518 Build: Inherit the features and warning flags privately 2017-12-20 04:04:28 +01:00
Naios
964d6bd1b2 Build: Use the cotire library for precompiled header handling
* Required for handling flags inherited by linked projects
  correctly in the corresponding precompiled header.
* Reduces the maintenance effort for precompiled headers

(cherry picked from commit 92f96fc10e)
2017-12-20 04:04:27 +01:00
Shauren
cd3feb00d5 Core/Bnet: Fixed another uninitialized variable (just to shut up static analysis tools, its never uninitialized when used) 2017-10-17 22:40:25 +02:00
Shauren
b09bd8d702 Core/Bnet: Fixed uninitialized value 2017-10-10 23:08:54 +02:00
Shauren
e9d3d2c3a2 Warning fix 2017-10-03 21:04:58 +02:00
Shauren
4d5eacd3af Core/Bnet: Added support for -launcherlogin logins (external client launcher required) 2017-10-03 18:03:57 +02:00
Shauren
65af89e4e6 Warning fixes 2017-09-22 19:39:04 +02:00
Shauren
91626f0339 Core/Bnet: Moved loading account info from rest service to session
* This improves concurrency by removes thread synchronization when checking login tickets
* Also allows users to use external (web based) login systems
2017-09-22 18:26:00 +02:00
Shauren
0c0f099dd6 Build fix 2017-09-21 22:09:15 +02:00
Shauren
3269a68427 Core/Bnet: Implement a way to handle turn protobuf service calls into async requests 2017-09-21 21:59:59 +02:00
Shauren
0feb56e2c7 Core/Bnet: Fixed login after gSOAP update 2017-07-21 00:36:03 +02:00
Shauren
a6e46c1c2e Buildsystem: Fixed windows pch build with ninja 2017-07-19 21:37:42 +02:00
Shauren
57fcc9edcd Build fix for boost 1.55 2017-07-15 01:43:42 +02:00
Shauren
274c45e548 Core/Bnet: Changed login REST service to use async db queries instead of spawning a thread for each request 2017-07-14 19:18:42 +02:00
Shauren
137f5e7887 Buildsystem: Minor PCH building changes
* *PCH.cpp are now only compiled with MSVC, other compilers use custom helper commands to generate the precompiled header
* Don't call the linker for pch helpertargets
2017-06-08 00:37:15 +02:00
Shauren
beb3316089 Core/Shared: Include cleanup 2017-05-13 11:49:09 +02:00
Shauren
7e538980a2 Core/Database: Include cleanup 2017-05-12 18:50:27 +02:00
Shauren
3a418a0bbc Core/Common: Include cleanup 2017-05-11 22:29:51 +02:00
Shauren
6c92a481a3 Core/Misc: Cleanup worldserver/bnetserver main() functions to run destructors in predictable order
* world/bnet servers will now fail to startup if listen ports are in use
* Restored "Network.OutUBuff" config option lost during boost transition
2017-05-04 20:41:22 +02:00
Shauren
b8db320bf1 Core/Misc: Prefix all preprocessor defines from CompilerDefs with TRINITY_ to avoid conflicts (PLATFORM_WINDOWS is used/defined by CascLib) 2017-03-04 18:46:18 +01:00
Shauren
8e2634b2b4 Core/DBLayer: Convert async queries to new query callbacks and remove old callback handling 2017-01-13 21:38:03 +01:00
vincent-michael
86b98686a9 Update copyright note for 2017
Happy new year
2017-01-01 16:23:13 +01:00
Shauren
9633c8c2b7 Core/Debugging: Partially revert e0fb4445cd, the cmake hack to build wheaty directly into executable is still needed as it is impossible to have it initialize before every other static variable when it resides in dll (dynamic linking only) 2016-11-28 20:21:21 +01:00
Shauren
e0fb4445cd Core/Debugging: Added wheaty everywhere and modified it to always reliably report issues during static initialization 2016-11-28 18:37:51 +01:00
Shauren
def94248e1 Core/Bnet: Fixed an issue that allowed client to enter Battlenet::Session::ReadDataHandler with an invalid header
Closes #18312
2016-11-26 11:55:28 +01:00
tkrokli
3cd28ee6c0 Core/Bnet: correct a typo in enum (#17991)
The enum LOGIN_DEL_BNET_EXPERIED_ACCOUNT_BANNED
should be LOGIN_DEL_BNET_EXPIRED_ACCOUNT_BANNED
to avoid confusion and not need any interpretation.
2016-09-24 17:02:22 +01:00
Kevin Plestan
30d006f98b Core/Bnetserver: Re-enable ban on wrong password
Closes #17937
Closes #17969
2016-09-24 15:02:34 +02:00
Shauren
a8c412a063 Tools: Added universal TrinityCore banner with git version info to all tools 2016-07-17 17:24:53 +02:00
Shauren
8396dabdad Core/Misc: Fixed coverity issues
Uninitialized fields: CID 1354593, 1354595, 1354738
Unchecked return value: CID 1354558
Out of bounds access: CID 1352989, 1352993
Null pointer dereference: CID 1296286
2016-06-06 09:16:59 +02:00
Shauren
d59bba3c5d Core/Misc: Fixed uninitialized field
Coverity CID 1354596
2016-06-06 08:51:42 +02:00
Naios
be90932eda Core/Common: Move the query callback header to the database project
* Also renames the header to it's correct name QueryCallback

(cherry picked from commit d4d199d765)
2016-05-10 18:20:52 +02:00
Trond B Krokli
d1aa171a7a Core/authserver.conf.dist: missing description line (#17038)
This line is missing from authserver.conf.dist :
`#                     MySQL server and their own thread on the MySQL server.`

I have copied this description text line from the matching description in
`worldserver.conf.dist` (line 108 in the 3.3.5 worldserver source file).

This line is also missing in bnetserver.conf.dist , but the files are different
in line number, filename and folder, so bnetserver needs a separate commit.
(cherry picked from commit 329006d310)

# Conflicts:
#	src/server/authserver/authserver.conf.dist
2016-04-28 17:13:41 +01:00
Naios
51ec8d3b8c Core/Scripting: Use the path of the worldserver executable to search for the scripts dir
* Fixes issues when starting the worldserver not in the bin directory
  or the CMAKE_INSTALL_PREFIX directory using the -c option.

(cherry picked from commit 86b0fcf67a)
2016-04-18 23:03:24 +02:00
Shauren
c8b3ee3dd6 Core/Bnet: Fixed LoginREST.* address selection 2016-04-16 00:20:20 +02:00
Shauren
fa74fa1f4d Config: Extended description of LoginREST.*Address values 2016-04-12 00:13:30 +02:00
Gacko
b23a6aeaff Add missing configuration key LoginDatabase.SynchThreads. 2016-04-10 16:45:22 +02:00
Gacko
f5c46c78d3 Add missing configuration key BanExpiryCheckInterval. 2016-04-10 16:40:59 +02:00
Shauren
500d5db81e Renamed PublicKeyFile -> CertificatesFile 2016-04-10 14:05:30 +02:00
Gacko
7c3df3f5d3 Make private key and public key configurable.
Defaults to the files installed to the bin directory.
2016-04-10 13:31:39 +02:00
Shauren
4a3a178d7f Buildsystem: Initial changes to support building with vs clang toolset 2016-04-05 22:43:41 +02:00
Shauren
2babb00143 Core/Bnet: Add return LoginREST.ExternalAddress when LoginREST.LocalAddress is configured to localhost but client connects from a different machine in the network 2016-04-04 10:01:07 +02:00
Shauren
adc7b5e1f1 Core: Fixed VS 2013 build 2016-03-28 22:32:54 +02:00
Shauren
335a1e495c Clang build fixes 2016-03-28 19:32:33 +02:00
Shauren
ea652fbedd Build fixes 2016-03-28 18:47:13 +02:00
Shauren
dde620c402 Core: Updated to 6.2.4
* Rewrite bnetserver for new authentication protocol
2016-03-28 17:12:57 +02:00
DDuarte
b372935ce3 Typo fix 423bded9a6 2016-03-28 03:17:51 +01:00
DDuarte
423bded9a6 Core/Network: Change SocketMgr.StartNetwork to take the thread count by arg instead of config
AuthSocketMgr doesn't need "Network.Threads" config

Fixes "Missing name Network.Threads in config file authserver.conf"

Ref #16859

(cherry picked from commit 980f28d2ce)

# Conflicts:
#	src/server/authserver/Server/AuthSocketMgr.h
#	src/server/game/Server/WorldSocketMgr.cpp
2016-03-28 02:36:58 +01:00
Shauren
cfe8a6a58b Core/Misc: Moved RealmList to shared 2016-03-26 13:39:46 +01:00