Browse Source

outdoor users(11)

Louis Farina 11 months ago
parent
commit
fbad70314a
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      src/chat/NetworkClient.java

+ 7
- 0
src/chat/NetworkClient.java View File

@@ -302,11 +302,18 @@ class ConnectionListenerThread extends Thread {
302 302
 						}
303 303
 						response = response.trim();
304 304
 						response += ";";
305
+						for(User u:known_outdoor_users)
306
+						{
307
+							response += u.getName() + " ";
308
+						}
309
+						response = response.trim();
310
+						response += ";";
305 311
 						for(Socket s:dest_sockets)
306 312
 						{
307 313
 							response += s.getInetAddress().getHostAddress() + " ";
308 314
 						}
309 315
 						response = response.trim();
316
+						
310 317
 						response += ";" + (portNumber+1);
311 318
 						
312 319
 						System.out.println("Response :" + response);

Loading…
Cancel
Save