Skip to content
Snippets Groups Projects
Commit 50310f16 authored by owenw2's avatar owenw2
Browse files

completed mp3

parent 0624cae1
Branches main
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ type Response struct { ...@@ -36,7 +36,7 @@ type Response struct {
Message string Message string
} }
var NUM_SERVERS int = 1 // number of servers var NUM_SERVERS int = 5 // number of servers
// fills client response channel // fills client response channel
func (client *Client) run_server() { func (client *Client) run_server() {
......
#### Clone the repository
```
$ git clone https://gitlab.engr.illinois.edu/owenw2/distributed-systems-mps.git
```
#### Enter mp3 directory
```
$ cd distributed-systems-mps/mp3
```
#### Starting server
```
./server <server_name> <config_path>
```
- use a unique name for all server
- config path is config.txt
#### Starting client
```
./client <client_name> <config_path>
```
- use a unique name for all clients
- config path is config.txt
...@@ -62,7 +62,7 @@ type Response struct { ...@@ -62,7 +62,7 @@ type Response struct {
Message string Message string
} }
var NUM_SERVERS int = 2 // number of servers var NUM_SERVERS int = 5 // number of servers
////////////////////////////// //////////////////////////////
// CLIENT FUNCTIONS // CLIENT FUNCTIONS
......
File added
...@@ -2,13 +2,4 @@ A sp25-cs425-0601.cs.illinois.edu 1234 ...@@ -2,13 +2,4 @@ A sp25-cs425-0601.cs.illinois.edu 1234
B sp25-cs425-0602.cs.illinois.edu 1234 B sp25-cs425-0602.cs.illinois.edu 1234
C sp25-cs425-0603.cs.illinois.edu 1234 C sp25-cs425-0603.cs.illinois.edu 1234
D sp25-cs425-0604.cs.illinois.edu 1234 D sp25-cs425-0604.cs.illinois.edu 1234
E sp25-cs425-0605.cs.illinois.edu 1234 E sp25-cs425-0605.cs.illinois.edu 1234
\ No newline at end of file
A 127.0.0.1 2005
B 127.0.0.1 2006
C 127.0.0.1 2007
D 127.0.0.1 2008
E 127.0.0.1 2009
go run ./Client/client.go abcd config_test.txt
go run ./Server/server.go A config_test.txt
\ No newline at end of file
A 127.0.0.1 2005
B 127.0.0.1 2006
\ No newline at end of file
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment