#include <array>
#include <atomic>
#include <cstring>
#include <memory>
#include <string>
#include <vector>
Go to the source code of this file.
|
std::vector< std::pair< std::string, std::shared_ptr< std::atomic_flag > > > | vCheckFlag |
| Global variable to check if the servers are running.
|
|
◆ checkError() [1/2]
char * checkError |
( |
char * | result, |
|
|
const char * | , |
|
|
int | ) |
◆ checkError() [2/2]
char * checkError |
( |
int | , |
|
|
char * | buffer, |
|
|
int | ) |
◆ getErrnoString()
std::string getErrnoString |
( |
int | errVal | ) |
|
|
inline |
Converts errno to a readable string
- Parameters
-
- Returns
- std::string Error message
Definition at line 24 of file ErrorHelpers.hpp.
25{
26 std::array<char, BUFSIZ> buffer{};
27 return checkError(strerror_r(errVal, buffer.data(), BUFSIZ), buffer.data(), errVal);
28}
char * checkError(int, char *buffer, int)
◆ vCheckFlag
std::vector<std::pair<std::string, std::shared_ptr<std::atomic_flag> > > vCheckFlag |
|
extern |
Global variable to check if the servers are running.
Definition at line 4 of file ErrorHelpers.cpp.