mil.navy.nps.dis
Class NetworkStatus

java.lang.Object
  extended bymil.navy.nps.dis.NetworkStatus
All Implemented Interfaces:
NetworkCommBadge

public class NetworkStatus
extends java.lang.Object
implements NetworkCommBadge

A utility class that is used to determine the status of the network. As of this writing, it only is used to determine if we have an interface other than the loopback interface up. This implements the SecuirtyBadge scheme, so that we can use it in x-platform browsers with different security schemes.

Author:
DMcG

Field Summary
(package private)  boolean isConnected
           
 
Constructor Summary
NetworkStatus()
           
 
Method Summary
 boolean networkConnectionPresent()
          Used to test for the existence of network connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isConnected

boolean isConnected
Constructor Detail

NetworkStatus

public NetworkStatus()
Method Detail

networkConnectionPresent

public boolean networkConnectionPresent()
Used to test for the existence of network connections. Returns true if there is at least one interface that is not "127.0.0.1". Since microsoft refuses to make the loopback interface multicast- enabled, this is effectively a test to see whether we have an interface that can use mcast.