Develop a server program in java that waits for clients to connect. The server responds to the client to choose one of the following options available with server and then deliver the requested object to client: Text Image File Exit Server Program is first started. Then the Client program is started. Ask three question from Server Get the answer from client Finally send the results, Execute the following steps: Step 1: Run the Java program of Server Step 2: Run the Java program of Client and Sample output of Client Window: Sample output 1(Client): Connected to server Message from Server: Select the option: Text Image File Exit Enter the message to the server: 1 Reply from Server: Send your text Enter the message to the server: Hel1o Reply from Server: Send your text Enter the message to the server: How are you? Reply from Server: Send your text Enter the message to the server: Thank you? Reply from Server: Total number of text received 27 and bye Sample output 2(Client): Connected to server Message from Server: Select the option: Text Image File Exit Enter the message to the server: 2 Reply from Server: Send your file Enter the message to the server: file1.txt Reply from Server: Send your file Enter the message to the server: file2.txt Reply from Server: Total number of file received 2 and bye Sample output 1(Server): Connected to client socket number 13 Message to Client : Select the option: Text Image File Exit Reply From the client : 1 Reply to client : Send your text Reply message from client : Hel1o count letter sum : 5 Reply to client : Send your text Reply message from client : How are you? count letter sum : 18 Reply to client : Send your text Reply message from client : Thank you? count letter sum : 27 Reply to Client : Total number of text received 27 and bye Similarly for second output of client as second output of client (receive only two file) Task: 1. Write the Java socket program for the Server. (class name: Server_Your ID Number) Task: 2. Write the Java socket program for the Client. (class name: Client_Your ID Number)
Develop a server program in java that waits for clients to connect. The server responds to the client to choose one of the following options available with server and then deliver the requested object to client: Text Image File Exit Server Program is first started. Then the Client program is started. Ask three question from Server Get the answer from client Finally send the results, Execute the following steps: Step 1: Run the Java program of Server Step 2: Run the Java program of Client and Sample output of Client Window: Sample output 1(Client): Connected to server Message from Server: Select the option: Text Image File Exit Enter the message to the server: 1 Reply from Server: Send your text Enter the message to the server: Hel1o Reply from Server: Send your text Enter the message to the server: How are you? Reply from Server: Send your text Enter the message to the server: Thank you? Reply from Server: Total number of text received 27 and bye Sample output 2(Client): Connected to server Message from Server: Select the option: Text Image File Exit Enter the message to the server: 2 Reply from Server: Send your file Enter the message to the server: file1.txt Reply from Server: Send your file Enter the message to the server: file2.txt Reply from Server: Total number of file received 2 and bye Sample output 1(Server): Connected to client socket number 13 Message to Client : Select the option: Text Image File Exit Reply From the client : 1 Reply to client : Send your text Reply message from client : Hel1o count letter sum : 5 Reply to client : Send your text Reply message from client : How are you? count letter sum : 18 Reply to client : Send your text Reply message from client : Thank you? count letter sum : 27 Reply to Client : Total number of text received 27 and bye Similarly for second output of client as second output of client (receive only two file) Task: 1. Write the Java socket program for the Server. (class name: Server_Your ID Number) Task: 2. Write the Java socket program for the Client. (class name: Client_Your ID Number)
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Develop a server program in java that waits for clients to connect.
The server responds to the client to choose one of the following options available with server and then deliver the requested object to client:
Text
Image
File
Exit
Server Program is first started.
Then the Client program is started.
Ask three question from Server
Get the answer from client
Finally send the results,
Execute the following steps:
Step 1: Run the Java program of Server
Step 2: Run the Java program of Client and Sample output of Client Window:
Sample output 1(Client):
Connected to server
Message from Server: Select the option:
Text
Image
File
Exit
Enter the message to the server: 1
Reply from Server: Send your text
Enter the message to the server: Hel1o
Reply from Server: Send your text
Enter the message to the server: How are you?
Reply from Server: Send your text
Enter the message to the server: Thank you?
Reply from Server: Total number of text received 27 and bye
Sample output 2(Client):
Connected to server
Message from Server: Select the option:
Text
Image
File
Exit
Enter the message to the server: 2
Reply from Server: Send your file
Enter the message to the server: file1.txt
Reply from Server: Send your file
Enter the message to the server: file2.txt
Reply from Server: Total number of file received 2 and bye
Sample output 1(Server):
Connected to client socket number 13
Message to Client : Select the option:
Text
Image
File
Exit
Reply From the client : 1
Reply to client : Send your text
Reply message from client : Hel1o
count letter sum : 5
Reply to client : Send your text
Reply message from client : How are you?
count letter sum : 18
Reply to client : Send your text
Reply message from client : Thank you?
count letter sum : 27
Reply to Client : Total number of text received 27 and bye
Similarly for second output of client as second output of client (receive only two file)
Task: 1. Write the Java socket program for the Server. (class name: Server_Your ID Number)
Task: 2. Write the Java socket program for the Client. (class name: Client_Your ID Number)
Task: 3. Execute the program and show the output screenshot
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 7 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY