MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ socket_error_string()

static std::string Lila::socket_error_string ( int  code)
static

Definition at line 33 of file Server.cpp.

34{
35#ifdef MAYAFLUX_PLATFORM_WINDOWS
36 // Keep it simple: return numeric WSA code (can be extended with FormatMessage)
37 return "WSA error " + std::to_string(code);
38#else
39 return std::string(strerror(code));
40#endif
41}

Referenced by Lila::Server::handle_client(), Lila::Server::read_message(), and Lila::Server::server_loop().

+ Here is the caller graph for this function: