2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#include "core/socket/State.h"
44#ifndef DOXYGEN_SHOULD_SKIP_THIS
52namespace core::socket {
54 State::
State(
const int& state,
const std::string& file,
const int& line)
62 State::
State(
const int& state,
const std::string& file,
const int& line,
int errnum,
const std::string& errstr)
115 std::string stateString;
122 stateString =
"DISABLED";
127 stateString = errstr;
131 return stateString.append(
" [").append(std::to_string(errnum)).append(
"]");
135 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)