1. Engineering
  2. Computer Science
  3. in this assignment you will have to develop a clientserver...

Question: in this assignment you will have to develop a clientserver...

Question details

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 <note> 2. GET <request 3. PIN/UNPIN <data> 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 <note, server will have to store the note described in <note> part of the message. 2. If message is GET <request>, server has to send to client all notes stored in the dictionary that satisfy properties described in <request>. 3. If message is PIN <data>, server must pin all relevant to <data notes. 4. If message is UNPIN <data>, server must unpin all relevant to <data> 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
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution