Browse Source

outdoor users(10)

Louis Farina 11 months ago
parent
commit
51da8809a9
1 changed files with 1 additions and 6 deletions
  1. 1
    6
      src/chat/NetworkClient.java

+ 1
- 6
src/chat/NetworkClient.java View File

@@ -76,11 +76,6 @@ OutdoorListenerThread(User in_user, List<User> in_known_users,  List<User> in_kn
76 76
 						response += u.getName() + " ";
77 77
 					}
78 78
 					response = response.trim();
79
-					for(Socket s:dest_sockets)
80
-					{
81
-						response += s.getInetAddress().getHostAddress() + " ";
82
-					}
83
-					response = response.trim();
84 79
 					response += ";" + (portNumber+1);
85 80
 					
86 81
 					out.println(response);
@@ -490,7 +485,7 @@ public class NetworkClient {
490 485
 	          		  usernameList = response[0].split(" ");
491 486
 		              outdoorUsernameList = response[1].split(" ");
492 487
 	          		  addressList = new String[0];
493
-	                  portNumber = Integer.parseInt(response[3]);
488
+	                  portNumber = Integer.parseInt(response[2]);
494 489
 	          	}
495 490
             	
496 491
             	for(String u:usernameList)

Loading…
Cancel
Save