#include <Msg.h>
Public Member Functions | |
| Msg () | |
| template<class MsgType> | |
| Msg (IdType t, MsgType *d, int s=sizeof(MsgType), MsgFreeCallback g=DefaultMsgFreeCallback< MsgType >) | |
| Msg * | clone (void) |
| ~Msg () | |
| char * | data (void) |
| template<class MsgType> | |
| void | set_data (MsgType *d, int s=sizeof(MsgType), MsgFreeCallback g=DefaultMsgFreeCallback< MsgType >) |
| int | marshal (ACE_OutputCDR &cdr, Marshaler *mar) |
| int | demarshal (ACE_InputCDR &cdr, Marshaler *mar) |
Public Attributes | |
| IdType | type |
| int | size_ |
| MsgDataHolder< SynchPolicy > * | data_holder_ |
| MsgFreeCallback | gobbler_ |
Definition at line 141 of file Msg.h.
|
|||||||||
|
Definition at line 147 of file Msg.h. Referenced by channel::Msg< IdType, SynchPolicy >::clone(). |
|
||||||||||||||||||||||||||||
|
this constructor detects the msg_type, and construct a DefaultMsgFreeCallback based on detected msg_type. If user pass in an array as Msg to pass: 1. we cannot differentiate a pointer to a object from an array of object automatically, 2. for array, we need to specify the size (num of bytes) separately 3. for array, we should specify DefaultMsgArrayFreeCallback<MsgType> Definition at line 157 of file Msg.h. References channel::Msg< IdType, SynchPolicy >::data_holder_. |
|
|||||||||
|
Definition at line 172 of file Msg.h. References channel::Msg< IdType, SynchPolicy >::data_holder_, and channel::Msg< IdType, SynchPolicy >::gobbler_. |
|
||||||||||
|
||||||||||
|
Definition at line 176 of file Msg.h. References channel::Msg< IdType, SynchPolicy >::data_holder_. Referenced by channel::Msg< IdType, SynchPolicy >::demarshal(), channel::RemoteInterface< Channel, Transport >::handle_message(), My_Callback::process(), channel::LocalInterface< Channel >::send_msg(), Pong_Task::work(), Ping_Task::work(), and Demo_Task::work(). |
|
||||||||||||||||
|
||||||||||||||||
|
marshal IdType marshal msg data Definition at line 186 of file Msg.h. References channel::Msg< IdType, SynchPolicy >::data_holder_, channel::DefaultMarshaler::marshal(), channel::Marshaler::marshal(), channel::Msg< IdType, SynchPolicy >::size_, and channel::Msg< IdType, SynchPolicy >::type. Referenced by channel::ConnHandler< Channel, TcpSockTransport< Channel > >::send_msg(). |
|
||||||||||||||||||||||||
|
Definition at line 180 of file Msg.h. References channel::Msg< IdType, SynchPolicy >::data_holder_, channel::Msg< IdType, SynchPolicy >::gobbler_, and channel::Msg< IdType, SynchPolicy >::size_. |
|
|||||
|
|||||
|
Definition at line 145 of file Msg.h. Referenced by channel::Msg< IdType, SynchPolicy >::clone(), channel::Msg< IdType, SynchPolicy >::demarshal(), channel::Msg< IdType, SynchPolicy >::set_data(), and channel::Msg< IdType, SynchPolicy >::~Msg(). |
|
|||||
|
|||||
1.4.6-NO