Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.protocol
Class UnicastNetworkEmpegDiscoverer  view UnicastNetworkEmpegDiscoverer download UnicastNetworkEmpegDiscoverer.java

java.lang.Object
  extended byorg.jempeg.empeg.protocol.AbstractEmpegDiscoverer
      extended byorg.jempeg.empeg.protocol.UnicastNetworkEmpegDiscoverer

public class UnicastNetworkEmpegDiscoverer
extends AbstractEmpegDiscoverer

UnicastNetworkEmpegDiscoverer implements discovery over a Socket-based TCP/IP network. Discovery is based on communicating over port 8300 and listening for the Empeg to respond.

Version:
$Revision: 1.4 $

Field Summary
private  java.net.InetAddress myInetAddress
           
 
Fields inherited from class org.jempeg.empeg.protocol.AbstractEmpegDiscoverer
 
Constructor Summary
UnicastNetworkEmpegDiscoverer(java.net.InetAddress _inetAddress)
          Creates a UnicastNetworkEmpegDiscoverer to the given InetAddress.
 
Method Summary
static SocketConnection createConnection(java.net.InetAddress _inetAddress)
          Creates a SocketConnection based on the given InetAddress
 boolean discover(int _timeoutMillis)
          Implemented by subclasses.
 
Methods inherited from class org.jempeg.empeg.protocol.AbstractEmpegDiscoverer
addEmpegDiscovererListener, fireEmpegDiscovered, fireEmpegDiscovered, getEmpegName, getPlayerType, isEmpegConnected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myInetAddress

private java.net.InetAddress myInetAddress
Constructor Detail

UnicastNetworkEmpegDiscoverer

public UnicastNetworkEmpegDiscoverer(java.net.InetAddress _inetAddress)
Creates a UnicastNetworkEmpegDiscoverer to the given InetAddress.

Method Detail

createConnection

public static SocketConnection createConnection(java.net.InetAddress _inetAddress)
                                         throws java.io.IOException
Creates a SocketConnection based on the given InetAddress


discover

public boolean discover(int _timeoutMillis)
                 throws java.io.IOException
Description copied from class: AbstractEmpegDiscoverer
Implemented by subclasses. This will actually perform the subclass-dependent mechanism of finding an Empeg (within the given timeout time)

Specified by:
discover in class AbstractEmpegDiscoverer