Home
last modified time | relevance | path

Searched refs:SOL_SOCKET (Results 1 – 13 of 13) 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.c67 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &domain, &domain_length)) == 0; in FileDescriptor_isSocket()
DSocketChannelImpl.c78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n); in Java_sun_nio_ch_SocketChannelImpl_checkConnect()
DNet.c268 if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char*)&arg, in Java_sun_nio_ch_Net_socket0()
464 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_getIntOption0()
487 if (level == SOL_SOCKET && opt == SO_LINGER) in Java_sun_nio_ch_Net_getIntOption0()
517 if (level == SOL_SOCKET && opt == SO_LINGER) { in Java_sun_nio_ch_Net_setIntOption0()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java330 int connectError = Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_ERROR); in isConnected()
398 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_BROADCAST)); in getSocketOptionErrno()
400 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_KEEPALIVE)); in getSocketOptionErrno()
402 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in getSocketOptionErrno()
408 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_OOBINLINE)); in getSocketOptionErrno()
410 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_RCVBUF); in getSocketOptionErrno()
412 return booleanFromInt(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_REUSEADDR)); in getSocketOptionErrno()
414 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_SNDBUF); in getSocketOptionErrno()
416 return (int) Libcore.os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO).toMillis(); in getSocketOptionErrno()
489 Libcore.os.setsockoptInt(fd, SOL_SOCKET, SO_BROADCAST, booleanToInt((Boolean) value)); in setSocketOptionErrno()
[all …]
DBlockGuardOs.java125 return isUnixDomain(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_DOMAIN)); in isUnixSocket()
133 return isInetDomain(Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_DOMAIN)); in isInetSocket()
142 StructLinger linger = Libcore.os.getsockoptLinger(fd, SOL_SOCKET, SO_LINGER); in isLingerSocket()
147 return Libcore.os.getsockoptInt(fd, SOL_SOCKET, SO_PROTOCOL) == IPPROTO_UDP; in isUdpSocket()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java206 StructUcred credentials = Os.getsockoptUcred(clientFd, SOL_SOCKET, SO_PEERCRED); in checkUnixDomainSocket()
814 Os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv);
893 Os.setsockoptTimeval(recvFd, SOL_SOCKET, SO_RCVTIMEO, tv);
895 Os.setsockoptInt(recvFd, SOL_SOCKET, SO_RCVBUF, 1024 * 1024);
1241 Os.setsockoptTimeval(serverFd, SOL_SOCKET, SO_RCVTIMEO, tv);
1562 StructTimeval v = Os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO);
1566 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, newValue);
1568 StructTimeval actualValue = Os.getsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO);
1590 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, tv);
1616 () -> Os.setsockoptTimeval(null, SOL_SOCKET, SO_RCVTIMEO, tv),
[all …]
/libcore/luni/annotations/flagged_api/android/system/
DOsConstants.annotated.java1106 public static final int SOL_SOCKET; field in OsConstants
1107 static { SOL_SOCKET = 0; }
/libcore/ojluni/src/main/java/java/net/
DDatagramSocket.java29 import static android.system.OsConstants.SOL_SOCKET;
/libcore/luni/src/main/java/android/system/
DOsConstants.java704 public static final int SOL_SOCKET = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp540 initConstant(env, c, "SOL_SOCKET", SOL_SOCKET); in OsConstants_initConstants()
/libcore/api/
Dcurrent.txt510 field public static final int SOL_SOCKET;