/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 198 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 …]
|
D | UnixAsynchronousSocketChannelImpl.c | 46 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &arglen); in Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect()
|
D | FileDescriptor_md.c | 68 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &error_length)) == 0; in FileDescriptor_isSocket()
|
D | SocketChannelImpl.c | 78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n); in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
|
D | Net.c | 272 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/ |
D | IoBridge.java | 270 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 …]
|
D | BlockGuardOs.java | 114 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/ |
D | OsTest.java | 165 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/ |
D | DatagramSocket.java | 29 import static android.system.OsConstants.SOL_SOCKET;
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 562 public static final int SOL_SOCKET = placeholder(); field in OsConstants
|
/libcore/luni/src/main/native/ |
D | android_system_OsConstants.cpp | 524 initConstant(env, c, "SOL_SOCKET", SOL_SOCKET); in OsConstants_initConstants()
|