Home
last modified time | relevance | path

Searched refs:SOL_SOCKET (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/main/native/
Dnet_util_md.c198 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess, sizeof(int)) == 0) { in findMaxBuf()
200 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess,sizeof(int)) < 0) { in findMaxBuf()
211 if (setsockopt(fd, SOL_SOCKET, opt, &mid, sizeof(int)) == 0) { in findMaxBuf()
915 { java_net_SocketOptions_SO_OOBINLINE, SOL_SOCKET, SO_OOBINLINE },
916 { java_net_SocketOptions_SO_LINGER, SOL_SOCKET, SO_LINGER },
917 { java_net_SocketOptions_SO_SNDBUF, SOL_SOCKET, SO_SNDBUF },
918 { java_net_SocketOptions_SO_RCVBUF, SOL_SOCKET, SO_RCVBUF },
919 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE },
920 { java_net_SocketOptions_SO_REUSEADDR, SOL_SOCKET, SO_REUSEADDR },
921 { java_net_SocketOptions_SO_BROADCAST, SOL_SOCKET, SO_BROADCAST },
[all …]
DUnixAsynchronousSocketChannelImpl.c46 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &arglen); in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect()
DFileDescriptor_md.c68 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &error_length)) == 0; in FileDescriptor_isSocket()
DSocketChannelImpl.c78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n); in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
DNet.c272 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
468 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
491 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
521 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java270 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR); in isConnected()
332 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_BROADCAST)); in getSocketOptionErrno()
334 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE)); in getSocketOptionErrno()
336 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno()
342 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE)); in getSocketOptionErrno()
344 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_RCVBUF); in getSocketOptionErrno()
346 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno()
348 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_SNDBUF); in getSocketOptionErrno()
350 return (int) Libcore.os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO).toMillis(); in getSocketOptionErrno()
420 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno()
[all …]
DBlockGuardOs.java114 return isInetDomain(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_DOMAIN)); in isInetSocket()
122 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket()
127 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) == IPPROTO_UDP; in isUdpSocket()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java165 StructUcred credentials = Os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket()
684 Os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); in checkSendToSocketAddress()
817 Os.setsockoptTimeval(serverFd, SOL_SOCKET, SO_RCVTIMEO, tv); in test_recvfrom_concurrentShutdown()
1087 StructTimeval v = Os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO); in test_socket_sockoptTimeval_readWrite()
1091 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, newValue); in test_socket_sockoptTimeval_readWrite()
1093 StructTimeval actualValue = Os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO); in test_socket_sockoptTimeval_readWrite()
1112 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv); in test_socket_setSockoptTimeval_effective()
1129 () -> Os.setsockoptTimeval(null, SOL_SOCKET, SO_RCVTIMEO, tv),
1140 () -> Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv), in test_socket_setSockoptTimeval_fileFd()
1151 () -> Os.setsockoptTimeval(invalidFd, SOL_SOCKET, SO_RCVTIMEO, tv), in test_socket_setSockoptTimeval_badFd()
[all …]
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java29 import static android.system.OsConstants.SOL_SOCKET;
/libcore/luni/src/main/java/android/system/
DOsConstants.java562 public static final int SOL_SOCKET = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp524 initConstant(env, c, "SOL_SOCKET", SOL_SOCKET); in OsConstants_initConstants()