2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
20#include "core/socket/State.h"
22#ifndef DOXYGEN_SHOULD_SKIP_THIS
30namespace core::socket {
32 State::
State(
const int& state,
const std::string& file,
const int& line)
40 State::
State(
const int& state,
const std::string& file,
const int& line,
int errnum,
const std::string& errstr)
93 std::string stateString;
100 stateString =
"DISABLED";
105 stateString = errstr;
109 return stateString.append(
" [").append(std::to_string(errnum)).append(
"]");
113 return file +
"(" + std::to_string(line) +
")";
State & operator^=(int state)
State & operator&=(int state)
bool operator==(const int &state) const
State operator&(int state)
State & operator=(int state)
static constexpr int ERROR
State(const int &state, const std::string &file, const int &line)
State operator^(int state)
State(const int &state, const std::string &file, const int &line, int errnum, const std::string &errstr)
std::string where() const
static constexpr int NO_RETRY
State operator|(int state)
State & operator|=(int state)