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

Function doFinishConnect

classpath/java-nio.cpp:275–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275void doFinishConnect(JNIEnv* e, int socket)
276{
277 int error;
278 socklen_t size = sizeof(int);
279 int r = getsockopt(
280 socket, SOL_SOCKET, SO_ERROR, reinterpret_cast<char*>(&error), &size);
281
282 if (r != 0 or size != sizeof(int)) {
283 throwIOException(e);
284 } else if (error and not einProgress(error)) {
285 throwIOException(e, socketErrorString(e, error));
286 }
287}
288
289bool doConnect(JNIEnv* e, int s, sockaddr_in* address)
290{

Calls 3

throwIOExceptionFunction · 0.85
einProgressFunction · 0.85
socketErrorStringFunction · 0.85

Tested by

no test coverage detected