기본 콘텐츠로 건너뛰기

Asynchronous Socket

bool
setAsync(int fd)
{
    int flags(fcntl(fd, F_GETFL));
    return !( 0 > fcntl(fd, F_SETFL, flags|O_NONBLOCK) );
}


Powered by ScribeFire.

댓글