Question 1: Write a JAVA Program to send a message from client to server and receive a response back using TCP socket programming. Objectives of this program: SI. No. Tasks Marks Make Use of Java TCP...


please


Question 1: Write a JAVA Program to send a message from client to server and receive a response<br>back using TCP socket programming.<br>Objectives of this program:<br>SI. No.<br>Tasks<br>Marks<br>Make Use of Java TCP Socket Programming.<br>It starts a server which will be always running listening to a<br>port 5000 (Server.java).<br>Client (Client.java) sends a number (message) to the server. If 1<br>the client sends any other character to server then the server<br>should send an error message.<br>Server receives this number and multiplies it by 2.<br>Server (Server.java) sends back the result (message) to the<br>client (Client.java).<br>In case the number sent by the client was not a proper<br>number, server (Server.java) sends back the message

Extracted text: Question 1: Write a JAVA Program to send a message from client to server and receive a response back using TCP socket programming. Objectives of this program: SI. No. Tasks Marks Make Use of Java TCP Socket Programming. It starts a server which will be always running listening to a port 5000 (Server.java). Client (Client.java) sends a number (message) to the server. If 1 the client sends any other character to server then the server should send an error message. Server receives this number and multiplies it by 2. Server (Server.java) sends back the result (message) to the client (Client.java). In case the number sent by the client was not a proper number, server (Server.java) sends back the message "Please send a proper number" to the client (Client.java). Write both client and server programs demonstrating this and mail me your files. 1 0.5 0.5 3 4 0.5 0.5 6. 1.5 7 1.5

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here