![]() |
TrinityCore
|
#include <AuthSession.h>
Inheritance diagram for AuthSession:Public Member Functions | |
| AuthSession (Trinity::Net::IoContextTcpSocket &&socket) | |
| void | Start () override |
| bool | Update () override |
| void | SendPacket (ByteBuffer &packet) |
| Trinity::Net::SocketReadCallbackResult | ReadHandler () override |
| void | QueueQuery (QueryCallback &&queryCallback) |
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 () |
| boost::asio::ip::address const & | GetRemoteIpAddress () const |
| uint16 | GetRemotePort () const |
| template<SocketReadCallback 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 () |
Public Attributes | |
| uint32 | BattlegroupID = 0 |
| uint32 | LoginServerType = 0 |
| uint32 | RealmID = 0 |
| uint32 | Build = 0 |
| std::array< uint8, 4 > | LocalChallenge = {} |
| uint32 | LoginServerID = 0 |
| uint32 | RegionID = 0 |
| uint64 | DosResponse = 0 |
| Trinity::Crypto::SHA1::Digest | Digest = {} |
| std::string | Account |
| ByteBuffer | AddonInfo |
Private Types | |
| using | AuthSocket = Socket |
Private Member Functions | |
| bool | HandleLogonChallenge () |
| bool | HandleLogonProof () |
| bool | HandleReconnectChallenge () |
| bool | HandleReconnectProof () |
| bool | HandleRealmList () |
| bool | HandleXferAccept () |
| bool | HandleXferResume () |
| bool | HandleXferCancel () |
| void | LogonChallengeCallback (PreparedQueryResult result) |
| void | ReconnectChallengeCallback (PreparedQueryResult result) |
| void | RealmListCallback (PreparedQueryResult result) |
| bool | VerifyVersion (std::span< uint8 const > a, Trinity::Crypto::SHA1::Digest const &versionProof, bool isReconnect) |
| void | SetTimeout () |
Private Attributes | |
| friend | AuthHandlerTable |
| Optional< Trinity::Crypto::SRP6 > | _srp6 |
| SessionKey | _sessionKey = {} |
| std::array< uint8, 16 > | _reconnectProof = {} |
| Trinity::Asio::DeadlineTimer | _timeout |
| AuthStatus | _status |
| AccountInfo | _accountInfo |
| Optional< std::vector< uint8 > > | _totpSecret |
| LocaleConstant | _locale |
| uint32 | _os |
| std::string_view | _ipCountry |
| uint16 | _build |
| uint8 | _expversion |
| Minutes | _timezoneOffset |
| QueryCallbackProcessor | _queryProcessor |
Additional Inherited Members | |
Protected Member Functions inherited from Trinity::Net::Socket< Stream > | |
| virtual void | OnClose () |
| bool | AsyncProcessQueue () |
| void | SetNoDelay (bool enable) |
Definition at line 64 of file AuthSession.h.
|
private |
Definition at line 66 of file AuthSession.h.
| AuthSession::AuthSession | ( | Trinity::Net::IoContextTcpSocket && | socket | ) |
Definition at line 203 of file AuthSession.cpp.
|
private |
Definition at line 294 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 460 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 723 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 625 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 678 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
|
private |
|
private |
|
private |
| void AuthSession::QueueQuery | ( | QueryCallback && | queryCallback | ) |
Definition at line 276 of file AuthSession.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 232 of file AuthSession.cpp.
Here is the call graph for this function:
|
private |
Definition at line 735 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| void AuthSession::SendPacket | ( | ByteBuffer & | packet | ) |
Definition at line 281 of file AuthSession.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 209 of file AuthSession.cpp.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 222 of file AuthSession.cpp.
Here is the call graph for this function:
|
private |
Definition at line 855 of file AuthSession.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 104 of file AuthSession.h.
|
private |
Definition at line 109 of file AuthSession.h.
|
private |
Definition at line 110 of file AuthSession.h.
|
private |
Definition at line 108 of file AuthSession.h.
|
private |
Definition at line 106 of file AuthSession.h.
|
private |
Definition at line 107 of file AuthSession.h.
|
private |
Definition at line 113 of file AuthSession.h.
|
private |
Definition at line 100 of file AuthSession.h.
|
private |
Definition at line 99 of file AuthSession.h.
|
private |
Definition at line 98 of file AuthSession.h.
|
private |
Definition at line 103 of file AuthSession.h.
|
private |
Definition at line 102 of file AuthSession.h.
|
private |
Definition at line 111 of file AuthSession.h.
Definition at line 105 of file AuthSession.h.
| std::string AuthSession::Account |
Definition at line 241 of file WorldSocket.cpp.
| ByteBuffer AuthSession::AddonInfo |
Definition at line 242 of file WorldSocket.cpp.
|
private |
Definition at line 81 of file AuthSession.h.
| uint32 AuthSession::BattlegroupID = 0 |
Definition at line 232 of file WorldSocket.cpp.
| uint32 AuthSession::Build = 0 |
Definition at line 235 of file WorldSocket.cpp.
| Trinity::Crypto::SHA1::Digest AuthSession::Digest = {} |
Definition at line 240 of file WorldSocket.cpp.
| uint64 AuthSession::DosResponse = 0 |
Definition at line 239 of file WorldSocket.cpp.
| std::array<uint8, 4> AuthSession::LocalChallenge = {} |
Definition at line 236 of file WorldSocket.cpp.
| uint32 AuthSession::LoginServerID = 0 |
Definition at line 237 of file WorldSocket.cpp.
| uint32 AuthSession::LoginServerType = 0 |
Definition at line 233 of file WorldSocket.cpp.
| uint32 AuthSession::RealmID = 0 |
Definition at line 234 of file WorldSocket.cpp.
| uint32 AuthSession::RegionID = 0 |
Definition at line 238 of file WorldSocket.cpp.