7#ifndef __PSOCKET_FLAG_H__
8#define __PSOCKET_FLAG_H__
80#define PHOENIX_ASSERT_EXCEPTION(X) {\
81 bool isWrongSend = false;\
87 data_stream_assert(isWrongSend);\
PRecvFlag::PRecvFlag daemonRecvFlagFromString(const std::string &str)
Convert a std::string into a PRecvFlag.
PSendFlag::PSendFlag daemonSendFlagFromString(const std::string &str)
Convert a std::string into a PSendFlag.
std::string daemonToString(PSendFlag::PSendFlag flag)
Convert a PSendFlag into a std::string.
PSendStatus::PSendStatus daemonSendStatusFromString(const std::string &str)
Convert a std::string into a PSendStatus.
PRecvStatus::PRecvStatus daemonRecvStatusFromString(const std::string &str)
Convert a std::string into a PRecvStatus.
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
Parameters to create a socket.
int sendTimeOut
Timeout of the send method.
int recvTimeOut
Timeout of the recv method.
std::string hostname
Name of the host to be connected to.
size_t port
Port to be connected to.