UDP File Transfer Using Java
You will implement a reliable FTP client-server system.
Provide a simple menu to the user, e.g.
1. GET
2. PUT
3. CD
4. QUIT
Your code must be robust and handle any incorrect user input. Since there
can be
multiple clients querying the server at the same time with each client
being serviced by a
different thread on the server, the server must ensure concurrency
control on the data file
while it is being updated. Thus, only one thread must gain access to the
data file during
writes (hint: use synchronized keyword for the write method in your
code).
Be sure to terminate each thread cleanly after each client request has
been serviced.
Implement the project as described using Java Datagrams (UDP). This will
be a
connectionless client-server system since UDP is connectionless. However,
you will need
to provide reliability in your client-side application code since UDP
does not guarantee
delivery. You may use the CRC32 checksum class available in the
java.util.zip package
in the JDK for this purpose.
4 years ago 60
other Questions(10)
- Can this be completed?!
- for njosh
- 6 pages due in 5 hours
- 6551 W 2 DISCU
- What are the pros and cons of Anglo American’s adoption of an aggressive strategy in combating HIV/AIDS strategy? What recommendations would you give the company concerning its HIV/AIDS policy?
- Discussion Question 2 A
- Assignment (2 pages) For this Assignment, consider your suggestions for treating Jane. Write a 1- to 2-page summary of the case study. Your analysis should: Determine whether Jane meets criteria for an anxiety disorder Explain your rationale for your de
- STAT 3001 Week 5 Project Complete Solution
- What are some ways that you can establish credibility with your audience? Why is that important in your speech? Remember that your discussion response must include the following: A reflection on the concept we are discussing. Give us a summary of things
- before 5