7#ifndef __PEMPTY_BACKEND_IMPL_H__
8#define __PEMPTY_BACKEND_IMPL_H__
10#include "phoenix_data_stream.h"
20 size_t dataSize(data_size<T>(data));
24 DataStreamIter iter = (DataStreamIter)msg.data();
25 if(data_message_save<T>(iter, data)){
26 sendStatus =
sendMsg(msg, flag);
42 recvStatus =
recvMsg(msg, flag);
44 if(msg.size() != 0lu){
45 DataStreamIter iter = (DataStreamIter)msg.data();
46 if(!data_message_load<T>(iter, data)){
PRecvStatus::PRecvStatus recvData(T &data, PRecvFlag::PRecvFlag flag)
Recieved data with the socket.
PRecvStatus::PRecvStatus recvMsg(Message &msg, PRecvFlag::PRecvFlag flag)
Recieved data with the socket.
DataStreamMsg Message
Define the type of message used by the PAbstractSocketManager.
PSendStatus::PSendStatus sendData(const T &data, PSendFlag::PSendFlag flag)
Send data with the socket.
PSendStatus::PSendStatus sendMsg(const Message &msg, PSendFlag::PSendFlag flag)
Specialisation to send a Message with the PEmptySocket.
PRecvFlag
describe the receiving flag of the Socket
PRecvStatus
describe the result of the recv
@ CANNOT_DESERIALIZE_DATA
PSendFlag
describe the sending flag of the Socket
PSendStatus
describe the result of the send