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

Function doConnect

classpath/java-nio.cpp:289–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289bool doConnect(JNIEnv* e, int s, sockaddr_in* address)
290{
291 int r
292 = ::connect(s, reinterpret_cast<sockaddr*>(address), sizeof(sockaddr_in));
293 if (r == 0) {
294 return true;
295 } else if (not einProgress()) {
296 throwIOException(e);
297 return false;
298 } else {
299 return false;
300 }
301}
302
303int doAccept(JNIEnv* e, int s)
304{

Calls 3

connectFunction · 0.85
einProgressFunction · 0.85
throwIOExceptionFunction · 0.85

Tested by

no test coverage detected