accept4.cpp
1 2 3 4 5 6 | #include <sys/socket.h> int detect_accept4(int fd) { return ::accept4(fd, nullptr, nullptr, SOCK_NONBLOCK); } |
1 2 3 4 5 6 | #include <sys/socket.h> int detect_accept4(int fd) { return ::accept4(fd, nullptr, nullptr, SOCK_NONBLOCK); } |