MCPcopy Create free account
hub / github.com/apache/qpid-proton / errno_str2

Function errno_str2

c/src/proactor/win_iocp.cpp:1572–1578  ·  view source on GitHub ↗

Get string from error status

Source from the content-addressed store, hash-verified

1570
1571// Get string from error status
1572std::string errno_str2(DWORD status) {
1573 char buf[512];
1574 if (FormatMessage(FORMAT_MESSAGE_MAX_WIDTH_MASK | FORMAT_MESSAGE_FROM_SYSTEM,
1575 0, status, 0, buf, sizeof(buf), 0))
1576 return std::string(buf);
1577 return std::string("internal proactor error");
1578}
1579
1580
1581std::string errno_str(const std::string& msg, bool is_wsa) {

Callers 2

errno_strFunction · 0.85
psocket_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected