Skip to content

Commit f3f6874

Browse files
author
Sandy W
committed
added charts, changed ports
1 parent be019f5 commit f3f6874

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Charts.pdf

15.5 KB
Binary file not shown.

client/ClientThread.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public void run() {
5151
//creates a new Socket object and names it socket.
5252
//Establishes the socket connection between the client & server
5353
//name of the machine & the port number to which we want to connect
54-
socket = new Socket(hostName, 4000);
54+
socket = new Socket(hostName, 15432);
5555
if (printOutput) {
5656
System.out.print("Establishing connection.");
5757
}

server/Server.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ public static void main(String[] args) {
2020
ArrayList<Thread> list = new ArrayList<Thread>();
2121

2222
try {
23-
// listen for incoming connections on port 4000
24-
ServerSocket socket = new ServerSocket(4000);
25-
System.out.println("Server listening on port 4000");
23+
// listen for incoming connections on port 15432
24+
ServerSocket socket = new ServerSocket(15432);
25+
System.out.println("Server listening on port 15432");
2626

2727
// loop (forever) until program is stopped
2828
while(true) {

0 commit comments

Comments
 (0)