Uses of Class
java.net.DatagramPacket
| Package | Description |
|---|---|
| java.net | |
| libcore.io |
-
Uses of DatagramPacket in java.net
Methods in java.net with parameters of type DatagramPacket Modifier and Type Method Description protected abstract intDatagramSocketImpl. peekData(DatagramPacket pack)Receives data into the supplied datagram packet by peeking.intPlainDatagramSocketImpl. peekData(DatagramPacket pack)voidDatagramSocket. receive(DatagramPacket pack)Receives a packet from this socket and stores it in the argumentpack.protected abstract voidDatagramSocketImpl. receive(DatagramPacket pack)Receives data and stores it in the supplied datagram packetpack.voidPlainDatagramSocketImpl. receive(DatagramPacket pack)voidDatagramSocket. send(DatagramPacket pack)Sends a packet over this socket.protected abstract voidDatagramSocketImpl. send(DatagramPacket pack)Sends the given datagram packetpack.voidMulticastSocket. send(DatagramPacket packet, byte ttl)Deprecated.voidPlainDatagramSocketImpl. send(DatagramPacket packet) -
Uses of DatagramPacket in libcore.io
Methods in libcore.io with parameters of type DatagramPacket Modifier and Type Method Description static intIoBridge. recvfrom(boolean isRead, FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, DatagramPacket packet, boolean isConnected)static intIoBridge. recvfrom(boolean isRead, FileDescriptor fd, ByteBuffer buffer, int flags, DatagramPacket packet, boolean isConnected)
MulticastSocket.setTimeToLive(int)instead.