SNode.C
|
#include <State.h>
Public Member Functions | |
State (const int &state, const std::string &file, const int &line) | |
State (const int &state, const std::string &file, const int &line, int errnum, const std::string &errstr) | |
operator int () const | |
bool | operator== (const int &state) const |
State & | operator= (int state) |
State & | operator|= (int state) |
State & | operator&= (int state) |
State & | operator^= (int state) |
State | operator| (int state) |
State | operator& (int state) |
State | operator^ (int state) |
std::string | what () const |
std::string | where () const |
Static Public Attributes | |
static constexpr int | OK = 0 |
static constexpr int | DISABLED = 1 |
static constexpr int | ERROR = 2 |
static constexpr int | FATAL = 3 |
static constexpr int | NO_RETRY = 4 |
Private Attributes | |
int | state |
std::string | file |
int | line = 0 |
int | errnum |
std::string | errstr |
core::socket::State::State | ( | const int & | state, |
const std::string & | file, | ||
const int & | line | ||
) |
core::socket::State::State | ( | const int & | state, |
const std::string & | file, | ||
const int & | line, | ||
int | errnum, | ||
const std::string & | errstr | ||
) |
Definition at line 62 of file State.cpp.
References errnum, errstr, file, line, and state.
Referenced by operator&(), operator^(), and operator|().
core::socket::State::operator int | ( | ) | const |
State core::socket::State::operator& | ( | int | state | ) |
Definition at line 106 of file State.cpp.
References errnum, errstr, file, line, State(), and state.
Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), and core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen().
State & core::socket::State::operator&= | ( | int | state | ) |
Definition at line 90 of file State.cpp.
References state.
Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), and core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen().
State & core::socket::State::operator= | ( | int | state | ) |
bool core::socket::State::operator== | ( | const int & | state | ) | const |
Definition at line 74 of file State.cpp.
References state.
Referenced by core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), and core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen().
State core::socket::State::operator^ | ( | int | state | ) |
State & core::socket::State::operator^= | ( | int | state | ) |
State core::socket::State::operator| | ( | int | state | ) |
Definition at line 102 of file State.cpp.
References errnum, errstr, file, line, State(), and state.
Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), and core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init().
State & core::socket::State::operator|= | ( | int | state | ) |
std::string core::socket::State::what | ( | ) | const |
Definition at line 114 of file State.cpp.
References DISABLED, errnum, ERROR, errstr, FATAL, NO_RETRY, OK, and state.
Referenced by tls::getClient(), legacy::getLegacyClient(), and main().
std::string core::socket::State::where | ( | ) | const |
|
staticconstexpr |
Definition at line 56 of file State.h.
Referenced by tls::getClient(), legacy::getLegacyClient(), main(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and what().
|
private |
Definition at line 94 of file State.h.
Referenced by operator&(), operator^(), operator|(), State(), State(), and what().
|
staticconstexpr |
Definition at line 57 of file State.h.
Referenced by tls::getClient(), legacy::getLegacyClient(), main(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and what().
|
private |
Definition at line 95 of file State.h.
Referenced by operator&(), operator^(), operator|(), State(), State(), and what().
|
staticconstexpr |
Definition at line 58 of file State.h.
Referenced by tls::getClient(), legacy::getLegacyClient(), main(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and what().
|
private |
Definition at line 91 of file State.h.
Referenced by operator&(), operator^(), operator|(), State(), State(), and where().
|
private |
Definition at line 92 of file State.h.
Referenced by operator&(), operator^(), operator|(), State(), State(), and where().
|
staticconstexpr |
Definition at line 59 of file State.h.
Referenced by core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::connectEvent(), core::socket::stream::SocketAcceptor< PhysicalSocketServerT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketConnector< PhysicalSocketClientT, ConfigT, SocketConnectionT >::init(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and what().
|
staticconstexpr |
Definition at line 55 of file State.h.
Referenced by tls::getClient(), legacy::getLegacyClient(), main(), core::socket::stream::SocketClient< SocketConnectorT, SocketContextFactoryT, Args >::realConnect(), core::socket::stream::SocketServer< SocketAcceptorT, SocketContextFactoryT, Args >::realListen(), and what().
|
private |
Definition at line 90 of file State.h.
Referenced by operator int(), operator&(), operator&=(), operator=(), operator==(), operator^(), operator^=(), operator|(), operator|=(), State(), State(), and what().