![]() |
TrinityCore
|
#include <WorldSocket.h>
Inheritance diagram for EncryptablePacket:Public Member Functions | |
| EncryptablePacket (WorldPacket const &packet, bool encrypt) | |
| bool | NeedsEncryption () const |
Public Member Functions inherited from WorldPacket | |
| WorldPacket () | |
| WorldPacket (uint32 opcode, ConnectionType connection=CONNECTION_TYPE_DEFAULT) | |
| WorldPacket (uint32 opcode, size_t res, Reserve, ConnectionType connection=CONNECTION_TYPE_DEFAULT) | |
| WorldPacket (uint32 opcode, size_t res, Resize, ConnectionType connection=CONNECTION_TYPE_DEFAULT) | |
| WorldPacket (uint32 opcode, size_t res, ConnectionType connection=CONNECTION_TYPE_DEFAULT) | |
| WorldPacket (std::vector< uint8 > &&buffer, ConnectionType connection) | |
| WorldPacket (WorldPacket const &right)=default | |
| WorldPacket (WorldPacket &&packet) noexcept=default | |
| WorldPacket & | operator= (WorldPacket const &right)=default |
| WorldPacket & | operator= (WorldPacket &&right) noexcept=default |
| void | Initialize (uint32 opcode, size_t newres=200, ConnectionType connection=CONNECTION_TYPE_DEFAULT) |
| uint32 | GetOpcode () const |
| void | SetOpcode (uint32 opcode) |
| ConnectionType | GetConnection () const |
| TimePoint | GetReceivedTime () const |
| void | SetReceiveTime (TimePoint receivedTime) |
Public Member Functions inherited from ByteBuffer | |
| ByteBuffer () | |
| ByteBuffer (size_t size, Reserve) | |
| ByteBuffer (size_t size, Resize) | |
| ByteBuffer (ByteBuffer const &right)=default | |
| ByteBuffer (ByteBuffer &&buf) noexcept | |
| ByteBuffer (std::vector< uint8 > &&buffer) noexcept | |
| std::vector< uint8 > && | Release () &&noexcept |
| ByteBuffer & | operator= (ByteBuffer const &right)=default |
| ByteBuffer & | operator= (ByteBuffer &&right) noexcept |
| virtual | ~ByteBuffer ()=default |
| void | clear () |
| template<ByteBufferNumeric T> | |
| void | append (T value) |
| bool | HasUnfinishedBitPack () const |
| void | FlushBits () |
| void | ResetBitPos () |
| bool | WriteBit (bool bit) |
| bool | ReadBit () |
| void | WriteBits (uint64 value, int32 bits) |
| uint32 | ReadBits (int32 bits) |
| template<ByteBufferNumeric T> | |
| void | put (std::size_t pos, T value) |
| void | PutBits (std::size_t pos, std::size_t value, uint32 bitCount) |
| ByteBuffer & | operator<< (bool)=delete |
| ByteBuffer & | operator<< (char value) |
| ByteBuffer & | operator<< (uint8 value) |
| ByteBuffer & | operator<< (uint16 value) |
| ByteBuffer & | operator<< (uint32 value) |
| ByteBuffer & | operator<< (uint64 value) |
| ByteBuffer & | operator<< (int8 value) |
| ByteBuffer & | operator<< (int16 value) |
| ByteBuffer & | operator<< (int32 value) |
| ByteBuffer & | operator<< (int64 value) |
| ByteBuffer & | operator<< (float value) |
| ByteBuffer & | operator<< (double value) |
| ByteBuffer & | operator<< (std::string_view value) |
| ByteBuffer & | operator<< (std::string const &str) |
| ByteBuffer & | operator<< (char const *str) |
| ByteBuffer & | operator>> (bool &)=delete |
| ByteBuffer & | operator>> (char &value) |
| ByteBuffer & | operator>> (uint8 &value) |
| ByteBuffer & | operator>> (uint16 &value) |
| ByteBuffer & | operator>> (uint32 &value) |
| ByteBuffer & | operator>> (uint64 &value) |
| ByteBuffer & | operator>> (int8 &value) |
| ByteBuffer & | operator>> (int16 &value) |
| ByteBuffer & | operator>> (int32 &value) |
| ByteBuffer & | operator>> (int64 &value) |
| ByteBuffer & | operator>> (float &value) |
| ByteBuffer & | operator>> (double &value) |
| ByteBuffer & | operator>> (std::string &value) |
| uint8 & | operator[] (size_t const pos) |
| uint8 const & | operator[] (size_t const pos) const |
| size_t | rpos () const |
| size_t | rpos (size_t rpos_) |
| void | rfinish () |
| size_t | wpos () const |
| size_t | wpos (size_t wpos_) |
| size_t | bitwpos () const |
| Returns position of last written bit. | |
| size_t | bitwpos (size_t newPos) |
| template<ByteBufferNumeric T> | |
| void | read_skip () |
| void | read_skip (size_t skip) |
| template<ByteBufferNumeric T> | |
| T | read () |
| template<ByteBufferNumeric T> | |
| T | read (size_t pos) const |
| template<ByteBufferNumeric T> | |
| void | read (T *dest, size_t count) |
| void | read (uint8 *dest, size_t len) |
| template<ByteBufferNumeric T, size_t Size> | |
| void | read (std::array< T, Size > &arr) |
| void | WriteString (std::string const &str) |
| void | WriteString (std::string_view str) |
| void | WriteString (char const *str, size_t len) |
| void | ReadSkipCString (bool requireValidUtf8=true) |
| std::string_view | ReadCString (bool requireValidUtf8=true) |
| std::string_view | ReadString (uint32 length, bool requireValidUtf8=true) |
| std::span< uint8 > | ReadBytes (size_t length) |
| uint8 * | data () |
| uint8 const * | data () const |
| size_t | size () const |
| bool | empty () const |
| void | resize (size_t newsize) |
| void | reserve (size_t ressize) |
| void | shrink_to_fit () |
| template<ByteBufferNumeric T> | |
| void | append (T const *src, size_t cnt) |
| void | append (uint8 const *src, size_t cnt) |
| void | append (ByteBuffer const &buffer) |
| template<ByteBufferNumeric T, std::size_t Size> | |
| void | append (std::array< T, Size > const &arr) |
| void | put (size_t pos, uint8 const *src, size_t cnt) |
| void | print_storage () const |
| void | textlike () const |
| void | hexlike () const |
| void | OnInvalidPosition (size_t pos, size_t valueSize) const |
Public Attributes | |
| std::atomic< EncryptablePacket * > | SocketQueueLink |
Private Attributes | |
| bool | _encrypt |
Additional Inherited Members | |
Static Public Attributes inherited from ByteBuffer | |
| static constexpr size_t | DEFAULT_SIZE = 0x1000 |
| static constexpr uint8 | InitialBitPos = 8 |
Protected Attributes inherited from WorldPacket | |
| uint32 | m_opcode |
| ConnectionType | _connection |
| TimePoint | m_receivedTime |
Protected Attributes inherited from ByteBuffer | |
| size_t | _rpos |
| size_t | _wpos |
| uint8 | _bitpos |
| uint8 | _curbitval |
| std::vector< uint8 > | _storage |
Definition at line 44 of file WorldSocket.h.
|
inline |
Definition at line 47 of file WorldSocket.h.
References SocketQueueLink.
|
inline |
Definition at line 52 of file WorldSocket.h.
References _encrypt.
Referenced by WorldSocket::Update(), and WorldSocket::WritePacketToBuffer().
|
private |
Definition at line 57 of file WorldSocket.h.
Referenced by NeedsEncryption().
| std::atomic<EncryptablePacket*> EncryptablePacket::SocketQueueLink |
Definition at line 54 of file WorldSocket.h.
Referenced by EncryptablePacket().