![]() |
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) |
| void | SetSendBufferSize (std::size_t sendBufferSize) |
| void | OnClose () override |
| Trinity::Net::SocketReadCallbackResult | ReadHandler () override |
| void | QueueQuery (QueryCallback &&queryCallback) |
| void | SendAuthSession () |
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 () |
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 Member Functions | |
| void | LogOpcodeText (OpcodeClient opcode, std::unique_lock< std::mutex > const &guard) const |
| void | SendPacketAndLogOpcode (WorldPacket const &packet) |
| sends and logs network.opcode without accessing WorldSession | |
| void | HandleAuthSession (WorldPacket &recvPacket) |
| void | HandleAuthSessionCallback (std::shared_ptr< AuthSession > authSession, PreparedQueryResult result) |
| void | LoadSessionPermissionsCallback (PreparedQueryResult result) |
| void | SendAuthResponseError (uint8 code) |
| bool | HandlePing (WorldPacket &recvPacket) |
Private Attributes | |
| std::array< uint8, 4 > | _serverChallenge |
| std::array< uint8, 32 > | _dosChallenge |
| WorldPacketCrypt | _authCrypt |
| TimePoint | _LastPingTime |
| uint32 | _OverSpeedPings |
| std::mutex | _worldSessionLock |
| WorldSession * | _worldSession |
| bool | _authed |
| MessageBuffer | _headerBuffer |
| MessageBuffer | _packetBuffer |
| MPSCQueue< EncryptablePacket, &EncryptablePacket::SocketQueueLink > | _bufferQueue |
| std::size_t | _sendBufferSize |
| QueryCallbackProcessor | _queryProcessor |
| std::string | _ipCountry |
Definition at line 67 of file WorldSocket.h.
|
private |
Definition at line 69 of file WorldSocket.h.
|
strongprotected |
| Enumerator | |
|---|---|
| Ok | |
| Error | |
| WaitingForQuery | |
Definition at line 97 of file WorldSocket.h.
| WorldSocket::WorldSocket | ( | Trinity::Net::IoContextTcpSocket && | socket | ) |
|
default |
|
delete |
|
delete |
|
private |
Definition at line 423 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 452 of file WorldSocket.cpp.
Here is the call graph for this function:
|
private |
Definition at line 640 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 624 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
writes network.opcode log accessing WorldSession is not threadsafe, only do it when holding _worldSessionLock
Definition at line 394 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 136 of file WorldSocket.cpp.
|
delete |
|
delete |
| void WorldSocket::QueueQuery | ( | QueryCallback && | queryCallback | ) |
Definition at line 202 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 297 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 144 of file WorldSocket.cpp.
Here is the call graph for this function:
|
protected |
Definition at line 207 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 632 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 123 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 412 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 406 of file WorldSocket.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 85 of file WorldSocket.h.
|
overridevirtual |
Reimplemented from Trinity::Net::Socket< Stream >.
Definition at line 60 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 73 of file WorldSocket.cpp.
Here is the call graph for this function:
|
private |
Definition at line 121 of file WorldSocket.h.
|
private |
Definition at line 128 of file WorldSocket.h.
|
private |
Definition at line 132 of file WorldSocket.h.
|
private |
Definition at line 120 of file WorldSocket.h.
|
private |
Definition at line 130 of file WorldSocket.h.
|
private |
Definition at line 136 of file WorldSocket.h.
|
private |
Definition at line 123 of file WorldSocket.h.
|
private |
Definition at line 124 of file WorldSocket.h.
|
private |
Definition at line 131 of file WorldSocket.h.
|
private |
Definition at line 135 of file WorldSocket.h.
|
private |
Definition at line 133 of file WorldSocket.h.
|
private |
Definition at line 119 of file WorldSocket.h.
|
private |
Definition at line 127 of file WorldSocket.h.
|
private |
Definition at line 126 of file WorldSocket.h.