![]() |
TrinityCore
|
#include <WorldSocket.h>
Inheritance diagram for WorldSocket:Public Member Functions | |
| WorldSocket (Trinity::Net::IoContextTcpSocket &&socket) | |
| ~WorldSocket () | |
| WorldSocket (WorldSocket const &right)=delete | |
| WorldSocket (WorldSocket &&right)=delete | |
| WorldSocket & | operator= (WorldSocket const &right)=delete |
| WorldSocket & | operator= (WorldSocket &&right)=delete |
| void | Start () override |
| bool | Update () override |
| void | SendPacket (WorldPacket const &packet) |
| ConnectionType | GetConnectionType () const |
| void | SendAuthResponseError (uint32 code) |
| void | SetWorldSession (WorldSession *session) |
| void | SetSendBufferSize (std::size_t sendBufferSize) |
| void | OnClose () override |
| Trinity::Net::SocketReadCallbackResult | ReadHandler () override |
| void | QueueQuery (QueryCallback &&queryCallback) |
| void | SendAuthSession () |
| bool | InitializeCompression () |
Public Member Functions inherited from Trinity::Net::Socket< Stream > | |
| template<typename... Args> | |
| Socket (IoContextTcpSocket &&socket, Args &&... args) | |
| template<typename... Args> | |
| Socket (boost::asio::io_context &context, Args &&... args) | |
| Socket (Socket const &other)=delete | |
| Socket (Socket &&other)=delete | |
| Socket & | operator= (Socket const &other)=delete |
| Socket & | operator= (Socket &&other)=delete |
| virtual | ~Socket () |
| template<BOOST_ASIO_COMPLETION_TOKEN_FOR(void(boost::system::error_code, boost::asio::ip::tcp::endpoint)) Callback> | |
| decltype(auto) | Connect (boost::asio::ip::tcp::endpoint const &endpoint, Callback &&callback) |
| template<BOOST_ASIO_COMPLETION_TOKEN_FOR(void(boost::system::error_code, boost::asio::ip::tcp::endpoint)) Callback> | |
| decltype(auto) | Connect (std::vector< boost::asio::ip::tcp::endpoint > const &endpoints, Callback &&callback) |
| boost::asio::ip::address const & | GetRemoteIpAddress () const |
| uint16 | GetRemotePort () const |
| void | SetRemoteEndpoint (boost::asio::ip::tcp::endpoint const &endpoint) |
| template<invocable_r< SocketReadCallbackResult > Callback> | |
| void | AsyncRead (Callback &&callback) |
| void | QueuePacket (MessageBuffer &&buffer) |
| bool | IsOpen () const |
| void | CloseSocket () |
| void | DelayedCloseSocket () |
| Marks the socket for closing after write buffer becomes empty. | |
| MessageBuffer & | GetReadBuffer () |
| Stream & | underlying_stream () |
Protected Types | |
| enum class | ReadDataHandlerResult { Ok = 0 , Error = 1 , WaitingForQuery = 2 } |
Protected Member Functions | |
| bool | ReadHeaderHandler () |
| ReadDataHandlerResult | ReadDataHandler () |
Protected Member Functions inherited from Trinity::Net::Socket< Stream > | |
| bool | AsyncProcessQueue () |
| void | SetNoDelay (bool enable) |
Private Types | |
| using | BaseSocket = Socket |
Private Attributes | |
| ConnectionType | _type |
| uint64 | _key |
| std::array< uint8, 32 > | _serverChallenge |
| WorldPacketCrypt | _authCrypt |
| SessionKey | _sessionKey |
| std::array< uint8, 32 > | _encryptKey |
| TimePoint | _lastPingTime |
| uint32 | _overSpeedPings |
| std::mutex | _worldSessionLock |
| WorldSession * | _worldSession |
| bool | _authed |
| bool | _canRequestHotfixes |
| MessageBuffer | _headerBuffer |
| MessageBuffer | _packetBuffer |
| MPSCQueue< EncryptablePacket, &EncryptablePacket::SocketQueueLink > | _bufferQueue |
| std::size_t | _sendBufferSize |
| z_stream * | _compressionStream |
| QueryCallbackProcessor | _queryProcessor |
| std::string | _ipCountry |
Static Private Attributes | |
| static uint32 const | MinSizeForCompression = 0x400 |
| static std::array< uint8, 32 > const | AuthCheckSeed |
| static std::array< uint8, 32 > const | SessionKeySeed |
| static std::array< uint8, 32 > const | ContinuedSessionSeed |
| static std::array< uint8, 32 > const | EncryptionKeySeed |
Definition at line 83 of file WorldSocket.h.
|
private |
Definition at line 92 of file WorldSocket.h.
|
strongprotected |
| Enumerator | |
|---|---|
| Ok | |
| Error | |
| WaitingForQuery | |
Definition at line 125 of file WorldSocket.h.
|
explicit |
Definition at line 65 of file WorldSocket.cpp.
| WorldSocket::~WorldSocket | ( | ) |
Definition at line 71 of file WorldSocket.cpp.
|
delete |
|
delete |
|
private |
Definition at line 514 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
private |
Definition at line 859 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
Definition at line 609 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Negative mutetime indicates amount of seconds to be muted effective on next login - which is now.
Definition at line 647 of file WorldSocket.cpp.
Here is the call graph for this function:
|
private |
Definition at line 974 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 1025 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 943 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 959 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 1045 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool WorldSocket::InitializeCompression | ( | ) |
Definition at line 183 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
writes network.opcode log
Definition at line 436 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
overridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 254 of file WorldSocket.cpp.
|
delete |
|
delete |
| void WorldSocket::QueueQuery | ( | QueryCallback && | queryCallback | ) |
Definition at line 320 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 357 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 262 of file WorldSocket.cpp.
Here is the call graph for this function:
|
protected |
Definition at line 332 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void WorldSocket::SendAuthResponseError | ( | uint32 | code | ) |
Definition at line 1038 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void WorldSocket::SendAuthSession | ( | ) |
Definition at line 242 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void WorldSocket::SendPacket | ( | WorldPacket const & | packet | ) |
Definition at line 459 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
sends and logs network.opcode without accessing WorldSession
Definition at line 453 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 112 of file WorldSocket.h.
| void WorldSocket::SetWorldSession | ( | WorldSession * | session | ) |
Definition at line 325 of file WorldSocket.cpp.
|
overridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 121 of file WorldSocket.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 202 of file WorldSocket.cpp.
Here is the call graph for this function:
|
private |
Definition at line 470 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 157 of file WorldSocket.h.
|
private |
Definition at line 166 of file WorldSocket.h.
|
private |
Definition at line 171 of file WorldSocket.h.
|
private |
Definition at line 167 of file WorldSocket.h.
|
private |
Definition at line 174 of file WorldSocket.h.
|
private |
Definition at line 159 of file WorldSocket.h.
|
private |
Definition at line 169 of file WorldSocket.h.
|
private |
Definition at line 177 of file WorldSocket.h.
|
private |
Definition at line 154 of file WorldSocket.h.
|
private |
Definition at line 161 of file WorldSocket.h.
|
private |
Definition at line 162 of file WorldSocket.h.
|
private |
Definition at line 170 of file WorldSocket.h.
|
private |
Definition at line 176 of file WorldSocket.h.
|
private |
Definition at line 172 of file WorldSocket.h.
|
private |
Definition at line 156 of file WorldSocket.h.
|
private |
Definition at line 158 of file WorldSocket.h.
|
private |
Definition at line 153 of file WorldSocket.h.
|
private |
Definition at line 165 of file WorldSocket.h.
|
private |
Definition at line 164 of file WorldSocket.h.
|
staticprivate |
Definition at line 56 of file WorldSocket.h.
|
staticprivate |
Definition at line 60 of file WorldSocket.h.
|
staticprivate |
Definition at line 62 of file WorldSocket.h.
|
staticprivate |
Definition at line 85 of file WorldSocket.h.
|
staticprivate |
Definition at line 58 of file WorldSocket.h.