|
@@ -203,21 +203,23 @@ public class NetworkClient {
|
203
|
203
|
|
204
|
204
|
void send (Notification notif)
|
205
|
205
|
{
|
|
206
|
+ System.out.println("Indoor users:");
|
206
|
207
|
for(Socket s:dest_sockets)
|
207
|
208
|
{
|
208
|
209
|
try
|
209
|
210
|
{
|
210
|
|
- //System.out.println(s.getInetAddress().getHostAddress() + ": local port " + s.getLocalPort() + ", remote port " + s.getPort());
|
|
211
|
+ System.out.println(s.getInetAddress().getHostAddress() + ": local port " + s.getLocalPort() + ", remote port " + s.getPort());
|
211
|
212
|
ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());
|
212
|
213
|
out.writeObject(notif);
|
213
|
214
|
}
|
214
|
215
|
catch(IOException e){}
|
215
|
216
|
}
|
|
217
|
+ System.out.println("Outdoor users:");
|
216
|
218
|
for(Socket s:outdoor_dest_sockets)
|
217
|
219
|
{
|
218
|
220
|
try
|
219
|
221
|
{
|
220
|
|
- //System.out.println(s.getInetAddress().getHostAddress() + ": local port " + s.getLocalPort() + ", remote port " + s.getPort());
|
|
222
|
+ System.out.println(s.getInetAddress().getHostAddress() + ": local port " + s.getLocalPort() + ", remote port " + s.getPort());
|
221
|
223
|
ObjectOutputStream out = new ObjectOutputStream(s.getOutputStream());
|
222
|
224
|
out.writeObject(notif);
|
223
|
225
|
}
|