| 301 | } |
| 302 | |
| 303 | int doAccept(JNIEnv* e, int s) |
| 304 | { |
| 305 | sockaddr address; |
| 306 | socklen_t length = sizeof(address); |
| 307 | int r = ::accept(s, &address, &length); |
| 308 | if (r >= 0) { |
| 309 | return r; |
| 310 | } else if (errno != EINTR) { |
| 311 | throwIOException(e); |
| 312 | } |
| 313 | return -1; |
| 314 | } |
| 315 | |
| 316 | int doRead(int fd, void* buffer, size_t count) |
| 317 | { |
no test coverage detected