ソケットの非ブロックモード設定
#include <unistd.h> #include <fcntl.h> ... int fcflag = fcntl(sock_handle, F_GETFL); fcflag |= O_NONBLOCK; int result = fcntl(sock_handle, F_SETFL, fcflag); ...
#include <unistd.h> #include <fcntl.h> ... int fcflag = fcntl(sock_handle, F_GETFL); fcflag |= O_NONBLOCK; int result = fcntl(sock_handle, F_SETFL, fcflag); ...