#include <inputmessage.h>
|
| InputMessage () |
|
void | setBuffer (const std::string &buffer) |
|
std::string | getBuffer () |
|
void | skipBytes (uint16 bytes) |
|
void | setReadPos (uint16 readPos) |
|
uint8 | getU8 () |
|
uint16 | getU16 () |
|
uint32 | getU32 () |
|
uint64 | getU64 () |
|
std::string | getString () |
|
double | getDouble () |
|
uint8 | peekU8 () |
|
uint16 | peekU16 () |
|
uint32 | peekU32 () |
|
uint64 | peekU64 () |
|
bool | decryptRsa (int size) |
|
int | getReadSize () |
|
int | getReadPos () |
|
int | getUnreadSize () |
|
uint16 | getMessageSize () |
|
bool | eof () |
|
| LuaObject () |
|
virtual | ~LuaObject () |
|
template<typename T > |
void | connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false) |
|
template<typename... T> |
int | luaCallLuaField (const std::string &field, const T &... args) |
|
template<typename R , typename... T> |
R | callLuaField (const std::string &field, const T &... args) |
|
template<typename... T> |
void | callLuaField (const std::string &field, const T &... args) |
|
bool | hasLuaField (const std::string &field) |
| Returns true if the lua field exists. More...
|
|
template<typename T > |
void | setLuaField (const std::string &key, const T &value) |
| Sets a field in this lua object. More...
|
|
template<typename T > |
T | getLuaField (const std::string &key) |
| Gets a field from this lua object. More...
|
|
void | releaseLuaFieldsTable () |
| Release fields table reference. More...
|
|
void | luaSetField (const std::string &key) |
| Sets a field from this lua object, the value must be on the stack. More...
|
|
void | luaGetField (const std::string &key) |
| Gets a field from this lua object, the result is pushed onto the stack. More...
|
|
void | luaGetMetatable () |
| Get object's metatable. More...
|
|
void | luaGetFieldsTable () |
| Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
|
|
int | getUseCount () |
|
std::string | getClassName () |
| Returns the derived class name, its the same name used in Lua. More...
|
|
LuaObjectPtr | asLuaObject () |
|
void | operator= (const LuaObject &) |
|
| shared_object () |
|
virtual | ~shared_object () |
|
void | add_ref () |
|
void | dec_ref () |
|
refcount_t | ref_count () |
|
template<typename T > |
stdext::shared_object_ptr< T > | static_self_cast () |
|
template<typename T > |
stdext::shared_object_ptr< T > | dynamic_self_cast () |
|
template<typename T > |
stdext::shared_object_ptr< T > | const_self_cast () |
|
Definition at line 30 of file inputmessage.h.
◆ anonymous enum
Enumerator |
---|
BUFFER_MAXSIZE | |
MAX_HEADER_SIZE | |
Definition at line 33 of file inputmessage.h.
◆ InputMessage()
InputMessage::InputMessage |
( |
| ) |
|
◆ decryptRsa()
bool InputMessage::decryptRsa |
( |
int |
size | ) |
|
◆ eof()
bool InputMessage::eof |
( |
| ) |
|
|
inline |
◆ fillBuffer()
void InputMessage::fillBuffer |
( |
uint8 * |
buffer, |
|
|
uint16 |
size |
|
) |
| |
|
protected |
◆ getBuffer()
std::string InputMessage::getBuffer |
( |
| ) |
|
|
inline |
◆ getDataBuffer()
uint8* InputMessage::getDataBuffer |
( |
| ) |
|
|
inlineprotected |
◆ getDouble()
double InputMessage::getDouble |
( |
| ) |
|
◆ getHeaderBuffer()
uint8* InputMessage::getHeaderBuffer |
( |
| ) |
|
|
inlineprotected |
◆ getHeaderSize()
uint16 InputMessage::getHeaderSize |
( |
| ) |
|
|
inlineprotected |
◆ getMessageSize()
uint16 InputMessage::getMessageSize |
( |
| ) |
|
|
inline |
◆ getReadBuffer()
uint8* InputMessage::getReadBuffer |
( |
| ) |
|
|
inlineprotected |
◆ getReadPos()
int InputMessage::getReadPos |
( |
| ) |
|
|
inline |
◆ getReadSize()
int InputMessage::getReadSize |
( |
| ) |
|
|
inline |
◆ getString()
std::string InputMessage::getString |
( |
| ) |
|
◆ getU16()
uint16 InputMessage::getU16 |
( |
| ) |
|
◆ getU32()
uint32 InputMessage::getU32 |
( |
| ) |
|
◆ getU64()
uint64 InputMessage::getU64 |
( |
| ) |
|
◆ getU8()
uint8 InputMessage::getU8 |
( |
| ) |
|
◆ getUnreadSize()
int InputMessage::getUnreadSize |
( |
| ) |
|
|
inline |
◆ peekU16()
uint16 InputMessage::peekU16 |
( |
| ) |
|
|
inline |
◆ peekU32()
uint32 InputMessage::peekU32 |
( |
| ) |
|
|
inline |
◆ peekU64()
uint64 InputMessage::peekU64 |
( |
| ) |
|
|
inline |
◆ peekU8()
uint8 InputMessage::peekU8 |
( |
| ) |
|
|
inline |
◆ readChecksum()
bool InputMessage::readChecksum |
( |
| ) |
|
|
protected |
◆ readSize()
uint16 InputMessage::readSize |
( |
| ) |
|
|
inlineprotected |
◆ reset()
void InputMessage::reset |
( |
| ) |
|
|
protected |
◆ setBuffer()
void InputMessage::setBuffer |
( |
const std::string & |
buffer | ) |
|
◆ setHeaderSize()
void InputMessage::setHeaderSize |
( |
uint16 |
size | ) |
|
|
protected |
◆ setMessageSize()
void InputMessage::setMessageSize |
( |
uint16 |
size | ) |
|
|
inlineprotected |
◆ setReadPos()
void InputMessage::setReadPos |
( |
uint16 |
readPos | ) |
|
|
inline |
◆ skipBytes()
void InputMessage::skipBytes |
( |
uint16 |
bytes | ) |
|
|
inline |
◆ Protocol
The documentation for this class was generated from the following files: