outdoor users(11)
This commit is contained in:
parent
51da8809a9
commit
fbad70314a
1 changed files with 7 additions and 0 deletions
|
@ -302,11 +302,18 @@ class ConnectionListenerThread extends Thread {
|
||||||
}
|
}
|
||||||
response = response.trim();
|
response = response.trim();
|
||||||
response += ";";
|
response += ";";
|
||||||
|
for(User u:known_outdoor_users)
|
||||||
|
{
|
||||||
|
response += u.getName() + " ";
|
||||||
|
}
|
||||||
|
response = response.trim();
|
||||||
|
response += ";";
|
||||||
for(Socket s:dest_sockets)
|
for(Socket s:dest_sockets)
|
||||||
{
|
{
|
||||||
response += s.getInetAddress().getHostAddress() + " ";
|
response += s.getInetAddress().getHostAddress() + " ";
|
||||||
}
|
}
|
||||||
response = response.trim();
|
response = response.trim();
|
||||||
|
|
||||||
response += ";" + (portNumber+1);
|
response += ";" + (portNumber+1);
|
||||||
|
|
||||||
System.out.println("Response :" + response);
|
System.out.println("Response :" + response);
|
||||||
|
|
Loading…
Reference in a new issue