| 42 | } |
| 43 | |
| 44 | bool IsNonBlock(int sock_fd) { |
| 45 | int flags; |
| 46 | flags = fcntl(sock_fd, F_GETFL, 0); |
| 47 | if (flags & O_NONBLOCK) { |
| 48 | return true; |
| 49 | } |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | int SetNonBlock(int sock_fd) { |
| 54 | int flags; |
no outgoing calls
no test coverage detected