Question: 3 . Write a TCPmboxServer that accepts the following requests: - create mboxID : Create a mailbox with I [ mboxID and record the client
Write a TCPmboxServer that accepts the following requests:
create mboxID : Create a mailbox with I mboxID and record the client IP address as the owner.
send mboxID message : Send a message to the mailbox
read mboxID : Read one message from the mailbox. Can keep reading until the end in one connection. Start all over again on new connection ie stateless
delete mboxID : Delete one message from the mailbox. Can keep deleting until no more message left. Only owner can delete.
destroy mboxID : Destroy the mailbox with ID mboxID. only owner
This is a public messaging system so anyone can sendread from any mailbox as long as it exists. But only owner can deletedestroy
Need to save the owner IP for each mailbox.
Need to save all messages before they are deleted.
Need to handle all application errors such as duplicate mboxID, sendreaddeletedetroy to nonexistent mbox, illegal deletedetroy etc.
Write the corresponding client program to test the service.
Write a client with GUI.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
