Like This Site? 
 
RSS Feed Follow Us 

on Twitter! Be Our Fan!

UDP Datagram Sockets in Java

Share this post!
 Vote this!

A datagram socket is used to send and receive datagram packets. A DatagramSocket object is a local connection to a port that does the sending and receiving. There is no distinction between a UDP socket and a UDP server socket. Also unlike TCP sockets, a DatagramSocket can send to multiple, different addresses. The address to which data goes is stored in the packet, not in the socket. Some applications that you write to communicate over the network will not require the reliable, point-to-point channel provided by TCP. Rather, your applications might benefit from a mode of communication that delivers independent packages of information. The DatagramPacket and DatagramSocket classes in the java.net package implement system-independent datagram communication using UDP.  more...

0 comments:

Post a Comment