summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/ServerHandleImpl.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
* ServerHandle: Fix closing failed servers. (#4653)Mattes D2020-04-151-1/+4
| | | If the cServerHandle failed to listen, closing it would then crash Cuberite.
* Use a reasonable listen backlog value (#4597)Mat2020-04-021-2/+2
|
* 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.
* Some warning fixesJulian Laubstein2015-08-181-1/+3
|
* Network: Fixed ServerHandle's address formatting.Mattes D2015-07-071-2/+2
|
* Network: Fixed two-socket servers.Mattes D2015-02-181-1/+1
|
* ServerHandle: Fixed socket reuse.Mattes D2015-02-081-10/+30
| | | | Fixes CID 104670, CID 104670 and CID 103724.
* Use evutil_make_listen_socket_reuseableHowaner2015-02-071-16/+6
|
* Set reuse flag to socketsHowaner2015-02-071-1/+24
| | | Should fix #1726
* Fixed listening ports not closed on cServerHandle::Close.Mattes D2015-01-271-0/+3
|
* ServerHandleImpl: Removed needless diagnostic output.Mattes D2015-01-271-4/+0
|
* cNetwork: Fixed IP address reading for incoming connections.Mattes D2015-01-271-1/+2
|
* cNetwork: Added self pointers to keep objects alive for callbacks.Mattes D2015-01-231-2/+8
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
* cNetwork: Added link creation callback.Mattes D2015-01-221-0/+2
| | | | This allows the callback classes to store the link inside them and use it internally later on, mainly for sending data.
* cNetwork: Changed listening API.Mattes D2015-01-221-13/+36
| | | | The link-callbacks for each new accepted link are now received from the OnIncomingConnection listen-callback.
* cNetwork: Added error message to error callbacks.Mattes D2015-01-221-5/+6
|
* cTCPLinkImpl: Fixed type conversion warning.Mattes D2015-01-221-1/+1
|
* cNetwork: Split the main cpp file into several files.Mattes D2015-01-221-0/+302