MCPcopy Create free account
hub / github.com/ReadyTalk/avian / doAccept

Function doAccept

classpath/java-nio.cpp:303–314  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303int 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
316int doRead(int fd, void* buffer, size_t count)
317{

Calls 2

acceptFunction · 0.85
throwIOExceptionFunction · 0.85

Tested by

no test coverage detected