Question: Write a Program for Client Server Application using Socket Programming
0

Mumbai University > Computer Engineering > Sem-5 > Computer Networks

Marks: 10

Year: May-2016

ADD COMMENTlink
modified 2.5 years ago  • written 2.5 years ago by gravatar for Sagar Narkar Sagar Narkar1.5k
3

TCP/IP Socket Programming:

  1. The two key classes from the java.net package used in creation of server and client programs are: a. ServerSocket. b. Socket.

  2. A server program creates a specific type of socket that is used to listen for client requests (server socket).

  3. In the case of a connection request, the program creates a new socket through which it will exchange data with the client using input and output streams.

  4. The socket abstraction is very similar to the file concept: Developers have to open a socket, perform I/O, and close it.

  5. Figure below illustrates key steps involved in creating socket-based server and client programs.

enter image description here

Server Socket Programming in Java:

enter image description here

Client Socket Programming in Java:

enter image description here

ADD COMMENTlink
written 2.5 years ago by gravatar for Sagar Narkar Sagar Narkar1.5k
Please log in to add an answer.