summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/NetworkSingleton.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Force all headers other than "Globals.h" to be included with relative paths (#4269)peterbell102018-08-291-1/+1
| | | | | | | Closes #4236 CMake now creates a header file in the build directory under the path "include/Globals.h" which just includes "src/Globals.h" with an absolute path. Then instead of adding "src/" to the include directories, it adds "include/". #include "Globals.h" still works by including the build generated file and any other src-relative path will not work.
* Prefer static_cast to reinterpret_cast (#4223)peterbell102018-05-021-1/+1
| | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there.
* Fix cUrlClient leak (#4125)peterbell102018-02-201-7/+22
| | | | | | | | Fixes #4040 * The TCP connection is now shutdown after OnBodyFinished * Any open connections are closed when cNetworkSingleton::Terminate() is called. * Removed ownership cycles in cUrlClientRequest * Added a check to the test to ensure there are no leaks.
* NetworkSingleton: Fixed a throw warning in VS2017. (#3792)Mattes D2017-06-221-1/+1
| | | Also fixed the misleading name.
* NetworkSingleton: Fixed an object leak upon termination.Mattes D2017-06-171-0/+1
|
* Replace evdns with getaddrinfo and getnameinfo (#3766)peterbell102017-06-151-87/+6
|
* Use CMake's Android generators to crosscompileTiger Wang2016-12-121-0/+15
|
* Self tests (#3242)Mattes D2016-06-261-5/+2
| | | | | | | | * SelfTests: Added a cEvent stress-test. * cNetwork: Fixed startup event hang. The original code used to hang with a ~ 1:50000 chance, because on Linux the cEvent was destroyed before its "Set()" returned.
* cNetwork: Fixed possible hang when terminating immediately after init.Mattes D2016-06-181-2/+19
|
* Fixed and improved restartingTiger Wang2015-08-201-22/+31
| | | | | Restarts are now an actual, close-as-possible to application exit+reopen.
* Fixed cNetworkSingleton's HasTerminated flag.Mattes D2015-07-231-1/+4
| | | | Should fix random failures in Google-test.
* NetworkSingleton: LibEvent thread is joined properly on server exit.Mattes D2015-02-181-4/+2
|
* Added network termination called at app exit.Mattes D2015-01-271-11/+33
| | | | This fixes a crash in MSVC runtime caused by joining a thread in a global var's destructor.
* cNetwork: Added self pointers to keep objects alive for callbacks.Mattes D2015-01-231-0/+2
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
* cNetwork: Fixed race conditions with lookups; proper shutdown.Mattes D2015-01-221-38/+39
|
* cNetwork: Split the main cpp file into several files.Mattes D2015-01-221-45/+6
|
* cNetwork: Split cNetworkSingleton to a separate file.Mattes D2015-01-221-0/+281