7#ifndef __PSOCKET_FLAG_H__
8#define __PSOCKET_FLAG_H__
91#define PHOENIX_ASSERT_EXCEPTION(X) {\
92 bool isWrongSend = false;\
98 data_stream_assert(isWrongSend);\
PRecvFlag::PRecvFlag fromString< PRecvFlag::PRecvFlag >(const std::string &str)
Convert a std::string into a PRecvFlag.
PRecvStatus::PRecvStatus fromString< PRecvStatus::PRecvStatus >(const std::string &str)
Convert a std::string into a PRecvStatus.
T fromString(const std::string &str)
std::string toString(PSendFlag::PSendFlag flag)
Convert a PSendFlag into a std::string.
PSendFlag::PSendFlag fromString< PSendFlag::PSendFlag >(const std::string &str)
Convert a std::string into a PSendFlag.
PSendStatus::PSendStatus fromString< PSendStatus::PSendStatus >(const std::string &str)
Convert a std::string into a PSendStatus.
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.