Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started