|
My Project
|
An outgoing message to be sent by a socket. More...
#include <NPLMsgOut.h>
Public Member Functions | |
| bool | empty () |
| if message is empty | |
| ParaEngine::StringBuilder & | GetBuffer () |
| get the internal string buffer | |
Public Attributes | |
| ParaEngine::StringBuilder | m_msg |
| The content to be sent in the reply. | |
Public Attributes inherited from ParaEngine::intrusive_ptr_single_thread_base | |
| long | m_ref_count |
Additional Inherited Members | |
Static Public Member Functions inherited from ParaEngine::PoolBase< NPLMsgOut > | |
| static void * | operator new (size_t size) |
| static void | operator delete (void *p) |
Protected Member Functions inherited from ParaEngine::intrusive_ptr_single_thread_base | |
| intrusive_ptr_single_thread_base (const intrusive_ptr_single_thread_base &) | |
| intrusive_ptr_single_thread_base & | operator= (const intrusive_ptr_single_thread_base &) |
An outgoing message to be sent by a socket.
Use CNPLMsgOut_gen to write content to the msg. this is output pending send queue item data struct. e.g. NPLMsgOut_ptr msg_out = NPLMsgOut_ptr(new NPLMsgOut()); CNPLMsgOut_gen writer(*msg_out); ... const string& msg_str = msg_out.ToString();
1.8.12