Question: Simple Java UDP This program will read a file over a network from a server and display the file on the screen of the client.
Simple Java UDP
This program will read a file over a network from a server and display the file on the screen of the client. It will use a UDP/IP stream socket connection between a server and a client. It will consist of two programs.(Server/client) You can do it on the same computer as long as the two programs are both running separately.
Both programs will use try blocks for possible exceptions. They both will use buffers and streams of data to read and write data. You may need to flush() the output buffer between writing the output streams.
2)SAME BUT USE UDP STOP & WA?T
1. client will have user input host, port #, and filename.
2. client writes filename to server.
3. server reads filename from client.
4 server reads the file from their computer line by line.
5. server writes the file to client line by line.
6. client reads the file from the server line by line.
7. client writes the file onto screen line by line.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
