MCPcopy Create free account
hub / github.com/78/tenbox / WsaErrorName

Function WsaErrorName

src/manager/llm_proxy.cpp:139–152  ·  view source on GitHub ↗

Translate common Winsock error codes encountered while writing back to the VM-side HTTP client.

Source from the content-addressed store, hash-verified

137// Translate common Winsock error codes encountered while writing back to
138// the VM-side HTTP client.
139static const char* WsaErrorName(int err) {
140 switch (err) {
141 case 0: return "OK";
142 case WSAEINTR: return "WSAEINTR";
143 case WSAECONNRESET: return "WSAECONNRESET";
144 case WSAECONNABORTED: return "WSAECONNABORTED";
145 case WSAESHUTDOWN: return "WSAESHUTDOWN";
146 case WSAENETRESET: return "WSAENETRESET";
147 case WSAETIMEDOUT: return "WSAETIMEDOUT";
148 case WSAENOTCONN: return "WSAENOTCONN";
149 case WSAENOTSOCK: return "WSAENOTSOCK";
150 default: return "WSA_UNKNOWN";
151 }
152}
153
154static uint64_t NowMonotonicMs() {
155 using namespace std::chrono;

Callers 1

ForwardToUpstreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected