/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 222 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR); in isConnected() 282 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_BROADCAST)); in getSocketOptionErrno() 284 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE)); in getSocketOptionErrno() 286 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno() 292 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE)); in getSocketOptionErrno() 294 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_RCVBUF); in getSocketOptionErrno() 296 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno() 298 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_SNDBUF); in getSocketOptionErrno() 300 return (int) Libcore.os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO).toMillis(); in getSocketOptionErrno() 353 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno() [all …]
|
D | BlockGuardOs.java | 106 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket()
|
/libcore/ojluni/src/main/native/ |
D | net_util_md.c | 191 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess, sizeof(int)) == 0) { in findMaxBuf() 193 if (setsockopt(fd, SOL_SOCKET, opt, &initial_guess,sizeof(int)) < 0) { in findMaxBuf() 204 if (setsockopt(fd, SOL_SOCKET, opt, &mid, sizeof(int)) == 0) { in findMaxBuf() 921 { java_net_SocketOptions_SO_OOBINLINE, SOL_SOCKET, SO_OOBINLINE }, in NET_MapSocketOption() 922 { java_net_SocketOptions_SO_LINGER, SOL_SOCKET, SO_LINGER }, in NET_MapSocketOption() 923 { java_net_SocketOptions_SO_SNDBUF, SOL_SOCKET, SO_SNDBUF }, in NET_MapSocketOption() 924 { java_net_SocketOptions_SO_RCVBUF, SOL_SOCKET, SO_RCVBUF }, in NET_MapSocketOption() 925 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE }, in NET_MapSocketOption() 926 { java_net_SocketOptions_SO_REUSEADDR, SOL_SOCKET, SO_REUSEADDR }, in NET_MapSocketOption() 927 { java_net_SocketOptions_SO_BROADCAST, SOL_SOCKET, SO_BROADCAST }, in NET_MapSocketOption() [all …]
|
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 | Inet4AddressImpl.c | 88 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in ping4() 332 if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, in Inet4AddressImpl_isReachable0()
|
D | Net.c | 187 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0() 357 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0() 380 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0() 409 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
|
D | Inet6AddressImpl.c | 176 setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &size, sizeof(size)); in ping6() 409 if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, in Inet6AddressImpl_isReachable0()
|
D | InheritedChannel.c | 98 if (getsockopt(fd, SOL_SOCKET, SO_TYPE, (void *)&sotype, &arglen) == 0) { in Java_sun_nio_ch_InheritedChannel_soType0()
|
D | PlainSocketImpl.c | 198 if (JVM_SetSockOpt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in PlainSocketImpl_socketCreate() 305 if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, in PlainSocketImpl_socketConnect() 416 if (JVM_GetSockOpt(fd, SOL_SOCKET, SO_ERROR, (void*)&connect_rv, in PlainSocketImpl_socketConnect()
|
D | PlainDatagramSocketImpl.c | 1003 if (JVM_SetSockOpt(fd, SOL_SOCKET, SO_SNDBUF, in PlainDatagramSocketImpl_datagramSocketCreate() 1009 if (JVM_SetSockOpt(fd, SOL_SOCKET, SO_RCVBUF, in PlainDatagramSocketImpl_datagramSocketCreate() 1017 setsockopt(fd, SOL_SOCKET, SO_BROADCAST, (char*) &t, sizeof(int)); in PlainDatagramSocketImpl_datagramSocketCreate()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 108 StructUcred credentials = Libcore.os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket() 336 Libcore.os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); in checkSendToSocketAddress()
|
/libcore/ojluni/src/main/java/java/net/ |
D | DatagramSocket.java | 1313 … Libcore.os.setsockoptIfreq(impl.fd, SOL_SOCKET, SO_BINDTODEVICE, netInterface.getName()); in setNetworkInterface()
|
/libcore/luni/src/main/java/android/system/ |
D | OsConstants.java | 443 public static final int SOL_SOCKET = placeholder(); field in OsConstants
|
/libcore/luni/src/main/native/ |
D | android_system_OsConstants.cpp | 493 initConstant(env, c, "SOL_SOCKET", SOL_SOCKET); in OsConstants_initConstants()
|