A multithreaded Bulletin Board (BB) system in which clients can post, reply, and read articles stored in the BB. The BB is maintained by a group of replicated servers that offer sequential consistency, Quorum consistency and Read-your-Write consistency.
To compile:
make clean
make rpc
make all
How to use:
Launch the RPC server with ./serverside
Launch a client application in another process. Its usage is as follows; ./clientside “local ip” “local port” “server ip”
Options on client side (post | read | choose | reply) where each has its function as follows -
- Post will return 0 if post fails, otherwise, it will return the id of posted article.
- Read will read all articles from the server.
- Choose will read an article with the given id.
- Reply will post a reply article to an existing article with a certain id.