Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/sun/nio/ch/
DInheritedChannel.java44 private static final int SOCK_DGRAM = 2; field in InheritedChannel
158 if (st != SOCK_STREAM && st != SOCK_DGRAM) { in createChannel()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java290 FileDescriptor nlSocket = Libcore.os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in test_NetlinkSocket()
306 FileDescriptor fd = Libcore.os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6); in test_PacketSocketAddress()
333 FileDescriptor recvFd = Libcore.os.socket(family, SOCK_DGRAM, 0); in checkSendToSocketAddress()
339 FileDescriptor sendFd = Libcore.os.socket(family, SOCK_DGRAM, 0); in checkSendToSocketAddress()
420 FileDescriptor fd = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in test_socketPing()
425 fd = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in test_socketPing()
437 FileDescriptor mUdpSock = Libcore.os.socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP); in test_Ipv4Fallback()
464 final FileDescriptor serverFd = Libcore.os.socket(AF_INET, SOCK_DGRAM, 0); in test_recvfrom_concurrentShutdown()
/libcore/ojluni/src/main/native/
DInheritedChannel.c101 if (sotype == SOCK_DGRAM) in Java_sun_nio_ch_InheritedChannel_soType0()
Dnet_util_md.c185 if (sotype == SOCK_DGRAM) { in findMaxBuf()
1154 } else if (!init_udp_max_buf && sotype == SOCK_DGRAM) { in NET_SetSockOpt()
1157 udp_max_buf = findMaxBuf(fd, opt, SOCK_DGRAM); in NET_SetSockOpt()
1246 if (sotype == SOCK_DGRAM) { in NET_SetSockOpt()
DNetworkInterface.c972 if ((sock = JVM_Socket(proto, SOCK_DGRAM, 0)) < 0) { in openSocket()
998 if ((sock = JVM_Socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in openSocketWithFallback()
1000 if ( (sock = JVM_Socket(AF_INET6, SOCK_DGRAM, 0)) < 0 ){ in openSocketWithFallback()
DNet.c156 int type = (stream ? SOCK_STREAM : SOCK_DGRAM); in Java_sun_nio_ch_Net_socket0()
199 if (domain == AF_INET6 && type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
DPlainSocketImpl.c146 int type = (stream ? SOCK_STREAM : SOCK_DGRAM); in PlainSocketImpl_socketCreate()
DPlainDatagramSocketImpl.c980 if ((fd = JVM_Socket(domain, SOCK_DGRAM, 0)) == JVM_IO_ERR) { in PlainDatagramSocketImpl_datagramSocketCreate()
/libcore/luni/src/main/java/android/system/
DOsConstants.java439 public static final int SOCK_DGRAM = placeholder(); field in OsConstants
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java607 fd = Libcore.os.socket(AF_INET6, stream ? SOCK_STREAM : SOCK_DGRAM, 0); in socket()
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp489 initConstant(env, c, "SOCK_DGRAM", SOCK_DGRAM); in OsConstants_initConstants()