Skip to content

Commit

Permalink
final
Browse files Browse the repository at this point in the history
  • Loading branch information
janusle committed May 19, 2012
1 parent 7a18474 commit 4d1214e
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/MultiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
public class MultiClient{


private final String SERVER_HOST = "yallara.cs.rmit.edu.au";//change address before submitting!
private final String SERVER_HOST = "yallara.cs.rmit.edu.au";
private final int SERVER_PORT = 40302;
private ServerSocket ss = null;
private int port;
Expand Down
10 changes: 8 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

# generate key
./genkey.sh

# the password should be 123456

# run iterative server
./runserver.sh iterative

Expand All @@ -21,7 +22,8 @@

# generate key
./genkey.sh

# the password should be 123456

# run concurrent server
./runserver.sh concurrent

Expand All @@ -46,3 +48,7 @@
3. Clean the *.class files

make clean



Note: Please run all the servers on yallara becuase client assumes the time servers are on yallara
2 changes: 1 addition & 1 deletion server/MultiServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class NoSuchClientException extends Exception{};
public class MultiServer{

private final int PORT = 40302;
private final int DELAY = 5000;
private final int DELAY = 60000;
private ArrayList<clientInfo> addresses = new ArrayList<clientInfo>();
private Timer timer = null;

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Server screenshot
Script started on Thu May 17 20:32:30 2012
%./runserver.sh concurrent
Server started...
Expand Down Expand Up @@ -85,6 +86,8 @@ Thread 27 finished
exit

script done on Thu May 17 20:33:54 2012

# client screenshot
Script started on Thu May 17 20:33:11 2012
%./runclient.sh concurrent
%20:33:27 17:05:2012
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Server screenshot
Script started on Thu May 17 20:27:30 2012
%./runclient.sh iterative
%20:28:09 17:05:2012
Expand Down Expand Up @@ -25,6 +26,8 @@ Script started on Thu May 17 20:27:30 2012
exit

script done on Thu May 17 20:28:19 2012

# Client screenshot
Script started on Thu May 17 20:27:30 2012
%./runclient.sh iterative
%20:28:09 17:05:2012
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Server screenshot
Script started on Thu May 17 21:14:20 2012
%./runserver.sh multi
Server is started...
Expand Down Expand Up @@ -30,6 +31,8 @@ No subscription, will try one minute after
exit

script done on Thu May 17 21:15:40 2012

# 0th Client screenshot
Script started on Thu May 17 21:13:29 2012
%./runclient.sh multi
Time subscribed, client id is 64073f2f:1375a81cf5d:-8000
Expand All @@ -56,6 +59,8 @@ Client is exiting...
exit

script done on Thu May 17 21:15:45 2012

# 1st Client screenshot
Script started on Thu May 17 21:13:34 2012
%./runclient.sh multi
Time subscribed, client id is 64073f2f:1375a81cf5d:-7fff
Expand Down

0 comments on commit 4d1214e

Please sign in to comment.