Skip to content

pin3da/zen-music-quest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zen-music-quest

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.

Dependencies

Compile

make

Run

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages