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.java91 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_udpSocket()
96 Os.fcntlInt(fd, F_SETFL, SOCK_DGRAM | O_NONBLOCK); in testFcntlInt_udpSocket()
100 Os.fcntlInt(fd, F_SETFL, SOCK_DGRAM); in testFcntlInt_udpSocket()
108 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_invalidCmd()
504 return Os.socket(AF_INET, SOCK_DGRAM, 0); in makeIpv4Socket()
508 return Os.socket(AF_INET6, SOCK_DGRAM, 0); in makeIpv6Socket()
512 return Os.socket(AF_UNIX, SOCK_DGRAM, 0); in makeUnixSocket()
547 FileDescriptor s = Os.socket(family, SOCK_DGRAM, 0); in testUnknownSocketAddressSubclass()
579 FileDescriptor nlSocket = Os.socket(AF_NETLINK, SOCK_DGRAM, NETLINK_ROUTE); in test_NetlinkSocket()
602 FileDescriptor fd = Os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6); in test_PacketSocketAddress()
[all …]
/libcore/ojluni/src/main/java/java/net/
DPlainDatagramSocketImpl.java44 import static android.system.OsConstants.SOCK_DGRAM;
198 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.java610 fd = Libcore.rawOs.socket(AF_INET, SOCK_DGRAM, 0); in getMTU()
653 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.java49 import static android.system.OsConstants.SOCK_DGRAM;
275 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.cpp519 initConstant(env, c, "SOCK_DGRAM", SOCK_DGRAM); in OsConstants_initConstants()