- DatagramPacket - Class in java.net
-
This class represents a datagram packet.
- DatagramPacket(byte[], int, int) - Constructor for class java.net.DatagramPacket
-
Constructs a DatagramPacket
for receiving packets of length length
, specifying an offset into the
buffer.
- DatagramPacket(byte[], int) - Constructor for class java.net.DatagramPacket
-
Constructs a DatagramPacket
for receiving packets of length length
.
- DatagramPacket(byte[], int, int, InetAddress, int) - Constructor for class java.net.DatagramPacket
-
Constructs a datagram packet for sending packets of length length
with offset ioffset
to the
specified port number on the specified host.
- DatagramPacket(byte[], int, int, SocketAddress) - Constructor for class java.net.DatagramPacket
-
Constructs a datagram packet for sending packets of length length
with offset ioffset
to the
specified port number on the specified host.
- DatagramPacket(byte[], int, InetAddress, int) - Constructor for class java.net.DatagramPacket
-
Constructs a datagram packet for sending packets of length length
to the specified port number on the
specified host.
- DatagramPacket(byte[], int, SocketAddress) - Constructor for class java.net.DatagramPacket
-
Constructs a datagram packet for sending packets of length length
to the specified port number on the
specified host.
- DatagramSocket - Class in java.net
-
This class represents a socket for sending and receiving datagram packets.
- DatagramSocket() - Constructor for class java.net.DatagramSocket
-
Constructs a datagram socket and binds it to any available port on the local host machine.
- DatagramSocket(SocketAddress) - Constructor for class java.net.DatagramSocket
-
Creates a datagram socket, bound to the specified local socket address.
- DatagramSocket(int) - Constructor for class java.net.DatagramSocket
-
Constructs a datagram socket and binds it to the specified port on the local host machine.
- DatagramSocket(int, InetAddress) - Constructor for class java.net.DatagramSocket
-
Creates a datagram socket, bound to the specified local address.
- disconnect() - Method in class java.net.DatagramSocket
-
Disconnects the socket.