[dijjer-cvs] Dijjer/src/dijjer/io/comm MulticastSocketManager.java,1.1,1.2
Brought to you by:
gnovos
|
From: Chris <ch...@us...> - 2005-08-26 02:20:19
|
Update of /cvsroot/dijjer/Dijjer/src/dijjer/io/comm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9975/src/dijjer/io/comm Modified Files: MulticastSocketManager.java Log Message: Don't answer multicast queries that we sent. Index: MulticastSocketManager.java =================================================================== RCS file: /cvsroot/dijjer/Dijjer/src/dijjer/io/comm/MulticastSocketManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** MulticastSocketManager.java 24 Aug 2005 02:55:48 -0000 1.1 --- MulticastSocketManager.java 26 Aug 2005 02:20:11 -0000 1.2 *************** *** 64,68 **** return; } ! if (m == null) { return; } --- 64,73 ---- return; } ! // No message, or one we sent to the multicast group ! if ((m == null) ! || (m.getSpec().equals(DMT.whoAreYou) ! && (m.getSource().getPort() == ResourceManager.mcastPort) ! && m.getSource().getAddress().equals( ! RoutingTable.getRoutingTable().getPeer().getAddress()))) { return; } |