Question: 3 . Write a TCPmboxServer that accepts the following requests: - create mboxID : Create a mailbox with I [ mboxID and record the client

3. 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 (i.e. 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 send/read from any mailbox as long as it exists. But only owner can delete/destroy.
- 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, send/read/delete/detroy to nonexistent mbox, illegal delete/detroy, etc.
- Write the corresponding client program to test the service.
Write a client with GUI.
3 . Write a TCPmboxServer that accepts the

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 Programming Questions!