Science, asked by choutu9203, 1 year ago

What is the difference between ServerSocket and DatagramSocket transport protocol?

Answers

Answered by Anonymous
6



A ServerSocket is for accepting incoming network connections on some stream protocol; e.g. TCP/IP.

A DatagramSocket is for sending and receiving datagrams on some connectionless datagram / message protocol; e.g. UDP/IP

HOPE HELPS ✌️✌️

Answered by payal961
2
HELLO!!!
YPUR ANSWER IS--


A SERVER SOCKET IS FOR ACCEPTING INCOMING NETWORK CONNECTION OF STREAM PROTOCOL..

A DATAGRAM SOCKET IS FOR SENDING AND RECEIVING DATAGRAM ON SOME CONNECTIONLESS DATAGRAM. ...

THANK U!!
:):):)
Similar questions