DatagramSocket

Class DatagramSocket

All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
MulticastSocket
public class DatagramSocket
extends Object
implements Closeable

This class represents a socket for sending and receiving datagram packets.

A datagram socket is the sending or receiving point for a packet delivery service. Each packet sent or received on a datagram socket is individually addressed and routed. Multiple packets sent from one machine to another may be routed differen