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.c191 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()
901 { java_net_SocketOptions_SO_OOBINLINE, SOL_SOCKET, SO_OOBINLINE }, in NET_MapSocketOption()
902 { java_net_SocketOptions_SO_LINGER, SOL_SOCKET, SO_LINGER }, in NET_MapSocketOption()
903 { java_net_SocketOptions_SO_SNDBUF, SOL_SOCKET, SO_SNDBUF }, in NET_MapSocketOption()
904 { java_net_SocketOptions_SO_RCVBUF, SOL_SOCKET, SO_RCVBUF }, in NET_MapSocketOption()
905 { java_net_SocketOptions_SO_KEEPALIVE, SOL_SOCKET, SO_KEEPALIVE }, in NET_MapSocketOption()
906 { java_net_SocketOptions_SO_REUSEADDR, SOL_SOCKET, SO_REUSEADDR }, in NET_MapSocketOption()
907 { java_net_SocketOptions_SO_BROADCAST, SOL_SOCKET, SO_BROADCAST }, in NET_MapSocketOption()
[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.c267 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
453 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
476 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
506 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java258 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR); in isConnected()
322 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_BROADCAST)); in getSocketOptionErrno()
324 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE)); in getSocketOptionErrno()
326 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno()
332 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE)); in getSocketOptionErrno()
334 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_RCVBUF); in getSocketOptionErrno()
336 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno()
338 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_SNDBUF); in getSocketOptionErrno()
340 return (int) Libcore.os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO).toMillis(); in getSocketOptionErrno()
410 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno()
[all …]
DBlockGuardOs.java112 return isInetDomain(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_DOMAIN)); in isInetSocket()
120 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket()
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java1374 … Libcore.os.setsockoptIfreq(impl.fd, SOL_SOCKET, SO_BINDTODEVICE, netInterface.getName()); in setNetworkInterface()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java113 StructUcred credentials = Libcore.os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket()
341 Libcore.os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv); in checkSendToSocketAddress()
/libcore/luni/src/main/java/android/system/
DOsConstants.java465 public static final int SOL_SOCKET = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp512 initConstant(env, c, "SOL_SOCKET", SOL_SOCKET); in OsConstants_initConstants()