| 791 | } |
| 792 | |
| 793 | bool KNativeSocketObject::isPriorityReadReady() { |
| 794 | fd_set sready = {}; |
| 795 | struct timeval nowait = { 0 }; |
| 796 | |
| 797 | FD_ZERO(&sready); |
| 798 | FD_SET(this->nativeSocket, &sready); |
| 799 | |
| 800 | ::select(this->nativeSocket + 1, nullptr, nullptr, &sready, &nowait); |
| 801 | bool result = FD_ISSET(this->nativeSocket, &sready) != 0; |
| 802 | if (result) { |
| 803 | this->error = 0; |
| 804 | } |
| 805 | return result; |
| 806 | } |
| 807 | |
| 808 | bool KNativeSocketObject::isReadReady() { |
| 809 | fd_set sready = {}; |
no test coverage detected