Question: In this assignment you will have to develop a client-server application using stream socket API of Java. This application is intended to support clients' ability

 In this assignment you will have to develop a client-server application

In this assignment you will have to develop a client-server application using stream socket API of Java. This application is intended to support clients' ability to store "notes" on server, and to request "notes" that have certain properties. Client will have to: Request a connection with the server Send different types of messages through established connection: 1. POST 2. GET 4. CLEAR 5. DISCONNECT Server will have to Accept multiple requests for connection . Maintain an appropriate data structure ("motes" dictionary or board) that holds data received from clients .Process messages received from client: 1. If message is POST part of the message. 2. If message is GET , server has to send to client all notes stored in the dictionary that satisfy properties described in . 3. If message is PIN , server must pin all relevant to , server must unpin all relevant to notes. 5. If message is CLEAR, server must forget all notes which are not pinned. 6 If message is DISCONNECT, server will disconnect from requesting client

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!