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

◆ set_nonblocking()

static int Lila::set_nonblocking ( int  fd)
static

Definition at line 62 of file Server.cpp.

63{
64#ifdef MAYAFLUX_PLATFORM_WINDOWS
65 u_long mode = 1;
66 return ioctlsocket(static_cast<SOCKET>(fd), FIONBIO, &mode);
67#else
68 int flags = fcntl(fd, F_GETFL, 0);
69 if (flags < 0)
70 return -1;
71 return fcntl(fd, F_SETFL, flags | O_NONBLOCK);
72#endif
73}

Referenced by Lila::Server::server_loop(), and Lila::Server::start().

+ Here is the caller graph for this function: