Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java464 return Os.socket(AF_INET, SOCK_DGRAM, 0); in makeIpv4Socket()
468 return Os.socket(AF_INET6, SOCK_DGRAM, 0); in makeIpv6Socket()
472 return Os.socket(AF_UNIX, SOCK_DGRAM, 0); in makeUnixSocket()
507 FileDescriptor s = Os.socket(family, SOCK_DGRAM, 0); in testUnknownSocketAddressSubclass()
539 FileDescriptor nlSocket = Os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in test_NetlinkSocket()
555 FileDescriptor fd = Os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6); in test_PacketSocketAddress()
582 FileDescriptor recvFd = Os.socket(family, SOCK_DGRAM, 0); in checkSendToSocketAddress()
588 FileDescriptor sendFd = Os.socket(family, SOCK_DGRAM, 0); in checkSendToSocketAddress()
670 FileDescriptor fd = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in test_socketPing()
675 fd = Os.socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP); in test_socketPing()
[all …]
/libcore/ojluni/src/main/java/java/net/
DPlainDatagramSocketImpl.java44 import static android.system.OsConstants.SOCK_DGRAM;
197 fd = IoBridge.socket(AF_INET6, SOCK_DGRAM, 0); in datagramSocketCreate()
DPlainSocketImpl.java50 import static android.system.OsConstants.SOCK_DGRAM;
128 fd.setInt$(IoBridge.socket(AF_INET6, isStream ? SOCK_STREAM : SOCK_DGRAM, 0).getInt$()); in socketCreate()
DInet6AddressImpl.java53 import static android.system.OsConstants.SOCK_DGRAM;
249 fd = IoBridge.socket(domain, SOCK_DGRAM, icmpProto); in icmpEcho()
DNetworkInterface.java570 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getMTU()
613 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java22 import static android.system.OsConstants.SOCK_DGRAM;
150 FileDescriptor udpSocket = Libcore.os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in test_connect_networkPolicy()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java47 import static android.system.OsConstants.SOCK_DGRAM;
282 FileDescriptor fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getFlags()
/libcore/ojluni/src/main/native/
Dnet_util_md.c192 if (sotype == SOCK_DGRAM) { in findMaxBuf()
1140 } else if (!init_udp_max_buf && sotype == SOCK_DGRAM) { in NET_SetSockOpt()
1143 udp_max_buf = findMaxBuf(fd, opt, SOCK_DGRAM); in NET_SetSockOpt()
1232 if (sotype == SOCK_DGRAM) { in NET_SetSockOpt()
DNet.c242 int type = (stream ? SOCK_STREAM : SOCK_DGRAM); in Java_sun_nio_ch_Net_socket0()
283 if (type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
299 if (domain == AF_INET6 && type == SOCK_DGRAM) { in Java_sun_nio_ch_Net_socket0()
/libcore/luni/src/main/java/android/system/
DOsConstants.java547 public static final int SOCK_DGRAM = placeholder(); field in OsConstants
/libcore/luni/src/main/native/
Dandroid_system_OsConstants.cpp515 initConstant(env, c, "SOCK_DGRAM", SOCK_DGRAM); in OsConstants_initConstants()