summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/TCPLinkImpl.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Enable some more clang-tidy linter checks (#4738)peterbell102020-05-151-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Using Super.Mattes D2020-04-161-2/+2
|
* 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.
* CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell102018-07-261-1/+0
| | | | Add check for number of empty lines between functions and fix the corresponding failures
* Removed UTF-8 BOM (#4033)Lukas Pioch2017-09-191-1/+1
|
* Update mbedtls to 2.5.1 (#3964)peterbell102017-08-301-15/+22
| | | | | | | | | | | | | | | | | | | | | | * Renaming changes: * macro prefix "POLARSSL" -> "MBEDTLS" * functions now prefixed with "mbedtls_" * rename PolarSSL++ -> mbedTLS++ * rename polarssl submodule * Use mbedtls' AES-CFB8 implementation. * Add cSslConfig to wrap mbedtls_ssl_config * Update cTCPLink and cBlockingSslClientSocket to use cSslConfig * Use cSslConfig in cHTTPServer * Use cSslConfig for cMojangAPI::SecureRequest * CI Fixes * Set -fomit-frame-pointer on the right target
* Replace evdns with getaddrinfo and getnameinfo (#3766)peterbell102017-06-151-26/+60
|
* TCPLink: call networking callbacks with LibEvent unlocked. (#3515)Mattes D2017-01-031-2/+2
|
* cUrlClient: Exported to Lua API.Mattes D2016-08-231-0/+5
|
* cTCPLink supports TLS out of the box.Mattes D2016-08-221-2/+289
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-1/+1
|
* Network: fixed excessive debug logging.Mattes D2015-04-211-6/+0
|
* Fixed TCP link shutdown.Mattes D2015-02-141-9/+56
| | | | The shutdown is postponed until there's no more outgoing data in the LibEvent buffers.
* cTCPLink: Fixed missing addresses on link connection.Mattes D2015-02-041-2/+2
|
* cTCPLinkImpl: Added the BEV_OPT_THREADSAFE flag.Mattes D2015-01-271-2/+8
|
* cNetwork: Added self pointers to keep objects alive for callbacks.Mattes D2015-01-231-10/+15
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1700&pid=17947#pid17947
* cNetwork: Renamed callback to OnConnected()Mattes D2015-01-221-1/+1
|
* cNetwork: Added link creation callback.Mattes D2015-01-221-10/+16
| | | | 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-1/+1
| | | | 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-2/+8
|
* cTCPLinkImpl: Fixed type conversion warning.Mattes D2015-01-221-2/+2
|
* cNetwork: Split the main cpp file into several files.Mattes D2015-01-221-0/+314