![]() |
|
PhoenixSocket
4.0.1
Library which integrates socket unix 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 | |
| PRecvFlag::PRecvFlag | daemonRecvFlagFromString (const std::string &str) |
| Convert a std::string into a PRecvFlag. | |
| PRecvStatus::PRecvStatus | daemonRecvStatusFromString (const std::string &str) |
| Convert a std::string into a PRecvStatus. | |
| PSendFlag::PSendFlag | daemonSendFlagFromString (const std::string &str) |
| Convert a std::string into a PSendFlag. | |
| PSendStatus::PSendStatus | daemonSendStatusFromString (const std::string &str) |
| Convert a std::string into a PSendStatus. | |
| std::string | daemonToString (PRecvFlag::PRecvFlag flag) |
| Convert a PRecvFlag into a std::string. | |
| std::string | daemonToString (PRecvStatus::PRecvStatus flag) |
| Convert a PRecvStatus into a std::string. | |
| std::string | daemonToString (PSendFlag::PSendFlag flag) |
| Convert a PSendFlag into a std::string. | |
| std::string | daemonToString (PSendStatus::PSendStatus flag) |
| 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 80 of file PSocketFlag.h.
| PRecvFlag::PRecvFlag daemonRecvFlagFromString | ( | const std::string & | str | ) |
Convert a std::string into a PRecvFlag.
| str | : std::string to be converted |
Definition at line 74 of file PSocketFlag.cpp.
References PRecvFlag::BLOCK, and PRecvFlag::NON_BLOCK.
| PRecvStatus::PRecvStatus daemonRecvStatusFromString | ( | const std::string & | str | ) |
Convert a std::string into a PRecvStatus.
| str | : std::string to be converted |
Definition at line 100 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 daemonSendFlagFromString | ( | const std::string & | str | ) |
Convert a std::string into a PSendFlag.
| str | : std::string to be converted |
Definition at line 24 of file PSocketFlag.cpp.
References PSendFlag::BLOCK, and PSendFlag::NON_BLOCK.
| PSendStatus::PSendStatus daemonSendStatusFromString | ( | const std::string & | str | ) |
Convert a std::string into a PSendStatus.
| str | : std::string to be converted |
Definition at line 49 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 daemonToString | ( | PRecvFlag::PRecvFlag | flag | ) |
Convert a PRecvFlag into a std::string.
| flag | : PRecvFlag to be converted |
Definition at line 63 of file PSocketFlag.cpp.
References PRecvFlag::BLOCK.
| std::string daemonToString | ( | PRecvStatus::PRecvStatus | flag | ) |
Convert a PRecvStatus into a std::string.
| flag | : PRecvStatus to be converted |
Definition at line 83 of file PSocketFlag.cpp.
References PRecvStatus::BROKEN_BACKEND, PRecvStatus::BROKEN_SOCKET, PRecvStatus::INVALID_MESSAGE, PRecvStatus::NO_MESSAGE_RECEIVED, PRecvStatus::OK, PRecvStatus::SIGNAL_INTERRUPTION, and PRecvStatus::SOCKET_NOT_AVAILABLE.
| std::string daemonToString | ( | PSendFlag::PSendFlag | flag | ) |
Convert a PSendFlag into a std::string.
| flag | : PSendFlag to be converted |
Definition at line 13 of file PSocketFlag.cpp.
References PSendFlag::BLOCK.
| std::string daemonToString | ( | PSendStatus::PSendStatus | flag | ) |
Convert a PSendStatus into a std::string.
| flag | : PSendStatus to be converted |
Definition at line 33 of file PSocketFlag.cpp.
References PSendStatus::BROKEN_BACKEND, PSendStatus::BROKEN_SOCKET, PSendStatus::NO_ROUTE_TO_RECEIVER, PSendStatus::OK, PSendStatus::SIGNAL_INTERRUPTION, and PSendStatus::SOCKET_NOT_AVAILABLE.