Core/Networking: Switch to intrusive variant of MPSC queue to halve the number of memory allocations for packet sending (#24659)
# Conflicts: # src/server/game/Server/WorldSocket.h
This commit is contained in:
1 parent
44e0d6c0f9
commit
a24e11cdd3
3 files changed
+110
-21
No files matched your search
@@ -35,17 +35,6 @@
|
||||
#include <zlib.h>
|
||||
#include <memory>
|
||||
|
||||
class EncryptablePacket : public WorldPacket
|
||||
{
|
||||
public:
|
||||
EncryptablePacket(WorldPacket const& packet, bool encrypt) : WorldPacket(packet), _encrypt(encrypt) { }
|
||||
|
||||
bool NeedsEncryption() const { return _encrypt; }
|
||||
|
||||
private:
|
||||
bool _encrypt;
|
||||
};
|
||||
|
||||
using boost::asio::ip::tcp;
|
||||
|
||||
std::string const WorldSocket::ServerConnectionInitialize("WORLD OF WARCRAFT CONNECTION - SERVER TO CLIENT");
|
||||
|
||||
Reference in new issue
Block a user