![]() |
|
PhoenixSocket
5.0.0
Library which integrates socket use in Phoenix
|
#include <string>
Include dependency graph for PSocketFlag.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | PSocketParam |
| Parameters to create a socket. More... | |
Namespaces | |
| namespace | PRecvFlag |
| namespace | PRecvStatus |
| namespace | PSendFlag |
| namespace | PSendStatus |
Macros | |
| #define | PHOENIX_ASSERT_EXCEPTION(X) |
| Assert especially designed to catch exception and abort if no exception is raised. | |
Enumerations | |
| enum | PRecvFlag::PRecvFlag { PRecvFlag::BLOCK , PRecvFlag::NON_BLOCK } |
| describe the receiving flag of the Socket More... | |
| enum | PRecvStatus::PRecvStatus { PRecvStatus::OK , PRecvStatus::NO_MESSAGE_RECEIVED , PRecvStatus::INVALID_MESSAGE , PRecvStatus::SOCKET_NOT_AVAILABLE , PRecvStatus::SIGNAL_INTERRUPTION , PRecvStatus::BROKEN_BACKEND , PRecvStatus::BROKEN_SOCKET , PRecvStatus::CANNOT_DESERIALIZE_DATA } |
| describe the result of the recv More... | |
| enum | PSendFlag::PSendFlag { PSendFlag::BLOCK , PSendFlag::NON_BLOCK } |
| describe the sending flag of the Socket More... | |
| enum | PSendStatus::PSendStatus { PSendStatus::OK , PSendStatus::SOCKET_NOT_AVAILABLE , PSendStatus::NO_ROUTE_TO_RECEIVER , PSendStatus::SIGNAL_INTERRUPTION , PSendStatus::BROKEN_BACKEND , PSendStatus::BROKEN_SOCKET , PSendStatus::CANNOT_SERIALIZE_DATA } |
| describe the result of the send More... | |
Functions | |
| template<typename T> | |
| T | fromString (const std::string &str) |
| template<> | |
| PRecvFlag::PRecvFlag | fromString< PRecvFlag::PRecvFlag > (const std::string &str) |
| Convert a std::string into a PRecvFlag. | |
| template<> | |
| PRecvStatus::PRecvStatus | fromString< PRecvStatus::PRecvStatus > (const std::string &str) |
| Convert a std::string into a PRecvStatus. | |
| template<> | |
| PSendFlag::PSendFlag | fromString< PSendFlag::PSendFlag > (const std::string &str) |
| Convert a std::string into a PSendFlag. | |
| template<> | |
| PSendStatus::PSendStatus | fromString< PSendStatus::PSendStatus > (const std::string &str) |
| Convert a std::string into a PSendStatus. | |
| std::string | toString (PRecvFlag::PRecvFlag flag) |
| Convert a PRecvFlag into a std::string. | |
| std::string | toString (PRecvStatus::PRecvStatus status) |
| Convert a PRecvStatus into a std::string. | |
| std::string | toString (PSendFlag::PSendFlag flag) |
| Convert a PSendFlag into a std::string. | |
| std::string | toString (PSendStatus::PSendStatus status) |
| Convert a PSendStatus into a std::string. | |
| #define PHOENIX_ASSERT_EXCEPTION | ( | X | ) |
Assert especially designed to catch exception and abort if no exception is raised.
Definition at line 91 of file PSocketFlag.h.
| T fromString | ( | const std::string & | str | ) |
| PRecvFlag::PRecvFlag fromString< PRecvFlag::PRecvFlag > | ( | const std::string & | str | ) |
Convert a std::string into a PRecvFlag.
| str | : std::string to be converted |
Definition at line 102 of file PSocketFlag.cpp.
References PRecvFlag::BLOCK, and PRecvFlag::NON_BLOCK.
| PRecvStatus::PRecvStatus fromString< PRecvStatus::PRecvStatus > | ( | const std::string & | str | ) |
Convert a std::string into a PRecvStatus.
| str | : std::string to be converted |
Definition at line 113 of file PSocketFlag.cpp.
References PRecvStatus::BROKEN_BACKEND, PRecvStatus::BROKEN_SOCKET, PRecvStatus::CANNOT_DESERIALIZE_DATA, PRecvStatus::INVALID_MESSAGE, PRecvStatus::NO_MESSAGE_RECEIVED, PRecvStatus::OK, PRecvStatus::SIGNAL_INTERRUPTION, and PRecvStatus::SOCKET_NOT_AVAILABLE.
| PSendFlag::PSendFlag fromString< PSendFlag::PSendFlag > | ( | const std::string & | str | ) |
Convert a std::string into a PSendFlag.
| str | : std::string to be converted |
Definition at line 75 of file PSocketFlag.cpp.
References PSendFlag::BLOCK, and PSendFlag::NON_BLOCK.
| PSendStatus::PSendStatus fromString< PSendStatus::PSendStatus > | ( | const std::string & | str | ) |
Convert a std::string into a PSendStatus.
| str | : std::string to be converted |
Definition at line 86 of file PSocketFlag.cpp.
References PSendStatus::BROKEN_BACKEND, PSendStatus::BROKEN_SOCKET, PSendStatus::CANNOT_SERIALIZE_DATA, PSendStatus::NO_ROUTE_TO_RECEIVER, PSendStatus::OK, PSendStatus::SIGNAL_INTERRUPTION, and PSendStatus::SOCKET_NOT_AVAILABLE.
| std::string toString | ( | PRecvFlag::PRecvFlag | flag | ) |
Convert a PRecvFlag into a std::string.
| flag | : PRecvFlag to be converted |
Definition at line 44 of file PSocketFlag.cpp.
References PRecvFlag::BLOCK, and PRecvFlag::NON_BLOCK.
| std::string toString | ( | PRecvStatus::PRecvStatus | status | ) |
Convert a PRecvStatus into a std::string.
| status | : PRecvStatus to be converted |
Definition at line 56 of file PSocketFlag.cpp.
References PRecvStatus::BROKEN_BACKEND, PRecvStatus::BROKEN_SOCKET, PRecvStatus::CANNOT_DESERIALIZE_DATA, PRecvStatus::INVALID_MESSAGE, PRecvStatus::NO_MESSAGE_RECEIVED, PRecvStatus::OK, PRecvStatus::SIGNAL_INTERRUPTION, and PRecvStatus::SOCKET_NOT_AVAILABLE.
| std::string toString | ( | PSendFlag::PSendFlag | flag | ) |
Convert a PSendFlag into a std::string.
| flag | : PSendFlag to be converted |
Definition at line 14 of file PSocketFlag.cpp.
References PSendFlag::BLOCK, and PSendFlag::NON_BLOCK.
| std::string toString | ( | PSendStatus::PSendStatus | status | ) |
Convert a PSendStatus into a std::string.
| status | : PSendStatus to be converted |
Definition at line 26 of file PSocketFlag.cpp.
References PSendStatus::BROKEN_BACKEND, PSendStatus::BROKEN_SOCKET, PSendStatus::CANNOT_SERIALIZE_DATA, PSendStatus::NO_ROUTE_TO_RECEIVER, PSendStatus::OK, PSendStatus::SIGNAL_INTERRUPTION, and PSendStatus::SOCKET_NOT_AVAILABLE.