com.blackledge.david.tivo
Class TivoLocator

java.lang.Object
  extended by com.blackledge.david.tivo.TivoLocator

public class TivoLocator
extends Object

Java 1.4 downgrade of com.peterfranza.TivoLocator
http://www.peterfranza.com/2008/09/25/tivo-detection-network-discovery/
from his site:
I’m sure that you know if you have a Tivo or not, but I’m providing a class based on the “Tivo Connect Automatic Machine Discovery Protocol Specification” that will listen for the Tivo UDP heartbeat and provide a notification when the heartbeat is detected.
Usage:TivoLocator.getInstance().addListener(new TivoLocatorListener() { public void processTivoHeartbeat(TivoInformation info) { System.out.println("Tivo IP: " + info.getAddress()); } }); The Tivo will send out these hearbeats about every 60 seconds or so. The TivoInformation class will tell you information such as: Internet Address: getAddress()
Connect Method: getMethod()
Platform: getPlatform()
Machine Name: getMachineName()
Identity: getIdentity()
Services: getServices()
Software Version: getSwVersion()

Version:
$Revision$

Nested Class Summary
static class TivoLocator.TivoInformation
           
static interface TivoLocator.TivoLocatorListener
           
 
Method Summary
 void addListener(TivoLocator.TivoLocatorListener listener)
           
 void close()
           
static TivoLocator getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TivoLocator getInstance()
                               throws SocketException
Throws:
SocketException

close

public void close()

addListener

public void addListener(TivoLocator.TivoLocatorListener listener)