gov.virginia.dcjs.client
Class BroadcastReceiver

java.lang.Object
  extended bygov.virginia.dcjs.client.BroadcastReceiver

public class BroadcastReceiver
extends java.lang.Object


Constructor Summary
BroadcastReceiver()
           
 
Method Summary
 boolean isActive()
          Determine whether or not the receiver is actively listening * for server broadcasts.
 void startMessages(java.lang.String host, int port, java.lang.String title)
          Prepare and start the broadcast listener.
 void startMessages(java.lang.String host, java.lang.String title)
          Prepare and start the broadcast listener.
 void stopMessages()
          Stop listening for server broadcast messages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastReceiver

public BroadcastReceiver()
Method Detail

startMessages

public void startMessages(java.lang.String host,
                          java.lang.String title)
Prepare and start the broadcast listener. * Each IpClient has the capability to listen for any messages * from the client's server. However, unless this method is * called, the broadcast messages will not be heard by the client. * @param host Location of broadcast server. * @param title Name to identify this client by.


startMessages

public void startMessages(java.lang.String host,
                          int port,
                          java.lang.String title)
Prepare and start the broadcast listener. * Each IpClient has the capability to listen for any messages * from the client's server. However, unless this method is * called, the broadcast messages will not be heard by the client. * @param host Location of broadcast server. * @param port TCP/IP port the broadcast server is listenning on. Any * value other than 443 will be taken to mean to use the predefined * custom port value - which will be correctly interpreted for both * the production and development sites. * @param title Name to identify this client by.


stopMessages

public void stopMessages()
Stop listening for server broadcast messages


isActive

public boolean isActive()
Determine whether or not the receiver is actively listening * for server broadcasts. * @return True when the receiver is actively listening for * broadcasts.