Exercises: Client Server


Before asking questions regarding this exercise, please review the lecture notes of Week #01 and #02 as well as the documentation on the Erlang web pages.

Address Server

Part A

In Erlang, implement a server process that manages a simple address database. This server should be able to handle four types of requests:

In addition, implement a client function that adds addresses to the database, retrieves addresses, and deletes them. One way of doing this would be to write an interactive front-end that communicates with the server.

Part B

In a second step, provide RPC stubs to communicate with the address server and rewrite your client to use these stubs. Finally, using Erlang's after clause add support for dealing with timeouts during communication with the server. How does this affect the RPC interface?

This page is maintained by cs9243@cse.unsw.edu.au Last modified: Monday, 07-Sep-2020 22:07:44 AEST