Java DatagramSocket

Java DatagramSocket is a class used for sending and receiving Java DatagramPackets over a network. It is part of the Java Networking API and is used to implement connectionless communication using the User Datagram Protocol (UDP). Java DatagramSocket allows applications to send small messages without the overhead of establishing a connection, which is ideal for lightweight, fast communication between devices. Introduced in Java 1995 with Java 1.0, DatagramSocket is commonly used in real-time applications such as voice or video streaming.

https://docs.oracle.com/javase/8/docs/api/java/net/DatagramSocket.html