3#include <StormByte/network/visibility.h>
11namespace StormByte::Network::Connection {
21 enum class STORMBYTE_NETWORK_PUBLIC Result {
40 enum class STORMBYTE_NETWORK_PUBLIC Result {
51 constexpr STORMBYTE_NETWORK_PUBLIC std::string ToString(
const StormByte::Network::Connection::Read::Result& result)
noexcept {
53 case StormByte::Network::Connection::Read::Result::Success:
55 case StormByte::Network::Connection::Read::Result::WouldBlock:
57 case StormByte::Network::Connection::Read::Result::Failed:
59 case StormByte::Network::Connection::Read::Result::Closed:
61 case StormByte::Network::Connection::Read::Result::Timeout:
63 case StormByte::Network::Connection::Read::Result::ShutdownRequest:
64 return "ShutdownRequest";
75 constexpr STORMBYTE_NETWORK_PUBLIC std::string ToString(
const StormByte::Network::Connection::Write::Result& result)
noexcept {
77 case StormByte::Network::Connection::Write::Result::Success:
79 case StormByte::Network::Connection::Write::Result::Failed:
The namespace containing read items.
The namespace containing write items.