Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description The application you will develop is intended to support clients ability to store notes on server, and to request notes that have certain properties.

Description

The application you will develop is intended to support clients ability to store notes on server,

and to request notes that have certain properties.

Client should be able to make the following requests:

1. Setup a connection with the server

2. Send different types of request messages through established connection:

a. POST

b. GET

c. PIN/UNPIN

d. CLEAR

e. DISCONNECT

Server should be able to do the following:

Accept multiple requests for connections

Maintain an appropriate data structure (notes dictionary or board) that holds data

received from clients

Process messages received from client:

If message is POST , server will have to store the note described in

part of the message.

If message is GET , server has to send to client all notes stored in the

dictionary that satisfy properties described in .

If message is PIN , server must pin all notes relevant to .

If message is UNPIN , server must unpin all notes relevant to .

If message is CLEAR, server must forget all notes which are not pinned.

If message is DISCONNECT, server will disconnect the connection with the

client.

Requirements :

Socket programming in python

Design and document an application-layer protocol.

Develop a client-server network application using stream socket API ( TCP ) of Python

Make sure to use TCP as the transport protocol

that implements the protocol you documented.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions