InfiniSQL
v0.1.2-alpha
Massive Scale Transaction Processing
|
Message variant for communicating socket events. More...
#include <Message.h>
Classes | |
struct | socket_s |
MessageSocket POD (serializable by memcpy) data members. More... | |
Public Member Functions | |
MessageSocket () | |
MessageSocket (int socketarg, uint32_t eventsarg, listenertype_e listenertype, int64_t nodeidarg, topic_e topicarg) | |
Message variant for communicating socket events. More... | |
virtual | ~MessageSocket () |
size_t | size () |
get Message size More... | |
string * | ser () |
create string with serialized message More... | |
void | package (class SerializedMessage &serobj) |
serialize this More... | |
void | unpack (SerializedMessage &serobj) |
deserialize into this More... | |
void | clear () |
clear contents of this More... | |
Public Attributes | |
socket_s | socketStruct |
Additional Inherited Members |
MessageSocket::MessageSocket | ( | ) |
Definition at line 205 of file Message.cc.
MessageSocket::MessageSocket | ( | int | socketarg, |
uint32_t | eventsarg, | ||
listenertype_e | listenertype, | ||
int64_t | nodeidarg, | ||
topic_e | topicarg | ||
) |
Message variant for communicating socket events.
socketarg | socket discriptor |
eventsarg | epoll events |
listenertype | type of listener |
nodeidarg | nodeid |
topicarg | topic |
Definition at line 209 of file Message.cc.
|
virtual |
Definition at line 219 of file Message.cc.
void MessageSocket::clear | ( | ) |
clear contents of this
Definition at line 252 of file Message.cc.
References Message::clear(), and socketStruct.
void MessageSocket::package | ( | class SerializedMessage & | serobj) |
serialize this
serobj | SerializedMessage |
Definition at line 240 of file Message.cc.
References Message::package(), SerializedMessage::ser(), and socketStruct.
Referenced by ser().
string * MessageSocket::ser | ( | ) |
create string with serialized message
Definition at line 228 of file Message.cc.
References SerializedMessage::data, SerializedMessage::getpayloadtype(), logfile, package(), and SerializedMessage::pos.
size_t MessageSocket::size | ( | ) |
get Message size
Definition at line 223 of file Message.cc.
References SerializedMessage::sersize(), Message::size(), and socketStruct.
void MessageSocket::unpack | ( | SerializedMessage & | serobj) |
deserialize into this
serobj | SerializedMessage |
Definition at line 246 of file Message.cc.
References SerializedMessage::des(), Message::messageStruct, and Message::unpack().
Referenced by Message::des().
socket_s MessageSocket::socketStruct |
Definition at line 225 of file Message.h.
Referenced by clear(), Pg::cont(), package(), size(), and TransactionAgent::TransactionAgent().