Question: Sockets In this lab, you will be working with Sockets. 1 . ) Sending a String: Build 2 classes, one A Server ( ServerString ,
Sockets
In this lab, you will be working with Sockets.
Sending a String: Build classes, one A ServerServerStringjava that sends a single String message and the second, a ClientClientStringjava that receives the message and prints it to the Console. No GUI programming is needed. Have these classes work in separate DOS windows. You will need DOS Windows to test these classes out. Run the Server first in one DOS Window, then run the Client in the Second DOS Window. At first, run the classes on the same machine. After you get them working on one machine, you may want to try to run the classes on different machinesoptional
For Part you must Use DatalnputStream and
DataOutputStream.
Sending Integers: Build classes, one A ClientClientintjava that sends say integers; the second, a ServerServerintjava that receives the integers and prints them to the Console. The Server should continue to read data from the Client until it reads a zero from the Client. Have these classes work in DOS windows. You will need DOS Windows to test these classes out. Run the Server first in one DOS Window, then run the Client in the Second DOS Window. At first, run the classes on the same machine. After you get them working on one machine, you may want to try to run the classes on different machinesoptional
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
