Distributed music service, built as a programming assignment in client-server architecture class.
Mainly we will use ZMQ to connect things, and zmqpp to make it easier.
-
aptitude install uuid-dev uuid-runtime uuid
-
libsfml (2.0 or higher)
aptitude install libsfml-dev
make
You can run the app using the start script provided here
./start.sh num_servers
It will create a binary tree of servers with depth of log2(num_servers)
You can also run the app manually and create your own topology:
./broker
./server ip id parent_ip
If you want one or several servers without parent just set the parent_ip = "tcp://localhost:4444"
####Optional parameters [Temporal]
-
Client: Option -br to specify the broker's address. Example:
./client -br tcp://localhost:9999
-
Broker: Option -s to specify the listening port (for servers). Option -c to specify the listening port (for clients). Example:
./broker -c 9999 -s 7777
-
Server [No option] - Write an extra parameter in order to specify the broker address. Example
./server localhost 1 localhost:4444 tcp://localhost:7777
Manuel Pineda - Carlos González.