Skip to content
Snippets Groups Projects
Commit 48289957 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

refactor rename for clarity

parent ca9ec6f2
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ import java.util.logging.Level; ...@@ -13,7 +13,7 @@ import java.util.logging.Level;
import java.util.logging.Logger; import java.util.logging.Logger;
/** /**
* Simple multicast receive and send methods. * Trial code producing simple multicast receive and send methods, no longer used.
* <pre> * <pre>
* Inefficient since a socket is opened and closed for each pdu send/receive. * Inefficient since a socket is opened and closed for each pdu send/receive.
* </pre> * </pre>
...@@ -22,7 +22,7 @@ import java.util.logging.Logger; ...@@ -22,7 +22,7 @@ import java.util.logging.Logger;
* @deprecated Use {@link edu.nps.moves.dis7.utilities.DisThreadedNetIF} instead * @deprecated Use {@link edu.nps.moves.dis7.utilities.DisThreadedNetIF} instead
*/ */
@Deprecated(since="dis7") @Deprecated(since="dis7")
public class DisNetworking public class TrialDisMulticastNetworkingDeprecated
{ {
public class BuffAndLength public class BuffAndLength
{ {
...@@ -46,19 +46,19 @@ public class DisNetworking ...@@ -46,19 +46,19 @@ public class DisNetworking
private InetSocketAddress group; private InetSocketAddress group;
private NetworkInterface ni; private NetworkInterface ni;
public DisNetworking() public TrialDisMulticastNetworkingDeprecated()
{ {
this(DisThreadedNetIF.DEFAULT_DIS_PORT, DisThreadedNetIF.DEFAULT_MULTICAST_ADDRESS); this(DisThreadedNetIF.DEFAULT_DIS_PORT, DisThreadedNetIF.DEFAULT_MULTICAST_ADDRESS);
} }
public DisNetworking(int port, String mcastgroup) public TrialDisMulticastNetworkingDeprecated(int port, String mcastgroup)
{ {
DIS_PORT = port; DIS_PORT = port;
MCAST_GROUP = mcastgroup; MCAST_GROUP = mcastgroup;
try { try {
maddr = InetAddress.getByName(MCAST_GROUP); maddr = InetAddress.getByName(MCAST_GROUP);
} catch (UnknownHostException ex) { } catch (UnknownHostException ex) {
Logger.getLogger(DisNetworking.class.getName()).log(Level.SEVERE, null, ex); Logger.getLogger(TrialDisMulticastNetworkingDeprecated.class.getName()).log(Level.SEVERE, null, ex);
} }
group = new InetSocketAddress(maddr, DIS_PORT); group = new InetSocketAddress(maddr, DIS_PORT);
ni = DisThreadedNetIF.findIpv4Interface(); ni = DisThreadedNetIF.findIpv4Interface();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment