1)Sockets in Java come in at least three varieties that are implemented by the Socket, DatagramSocket and...
Fantastic news! We've Found the answer you've been seeking!
Question:
1)Sockets in Java come in at least three varieties that are implemented by the Socket, DatagramSocket and ServerSocket Java classes. The first two socket classes represent TCP and UDP communications respectively. The first two socket classes are used to implement both clients and servers. The ServerSocket class is only used to implement servers. Explain these three Java classes comparing each other and define the low-level mechanism of socket programming?
2) Write a Java socket client example and explain what happened in detail.
3) Write a Java socket server example and explain what happened in detail.
Related Book For
Computer Networking A Top-Down Approach
ISBN: 978-0136079675
5th edition
Authors: James F. Kurose, Keith W. Ross
Posted Date: