com.aelitis.net.upnp.impl.ssdp
Class SSDPIGDImpl

java.lang.Object
  extended by com.aelitis.net.upnp.impl.ssdp.SSDPIGDImpl
All Implemented Interfaces:
SSDPIGD, UPnPSSDPListener

public class SSDPIGDImpl
extends Object
implements SSDPIGD, UPnPSSDPListener

Author:
parg

Field Summary
protected  AEMonitor this_mon
           
 
Constructor Summary
SSDPIGDImpl(UPnPImpl _upnp, String[] _selected_interfaces)
           
 
Method Summary
 void addListener(SSDPIGDListener l)
           
protected  boolean[] bytesToBits(byte[] bytes)
           
 SSDPCore getSSDP()
           
protected  void gotAlive(String usn, URL location)
           
protected  void gotRoot(NetworkInterface network_interface, InetAddress local_address, String usn, URL location)
           
 void interfaceChanged(NetworkInterface network_interface)
           
protected  void lostRoot(InetAddress local_address, String usn)
           
protected  void queryLoop()
           
 void receivedNotify(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String nt, String nts)
           
 void receivedResult(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String st, String al)
           
 String[] receivedSearch(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String ST)
           
 void removeListener(SSDPIGDListener l)
           
protected  void search()
           
 void searchNow()
           
 void searchNow(String[] STs)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

this_mon

protected AEMonitor this_mon
Constructor Detail

SSDPIGDImpl

public SSDPIGDImpl(UPnPImpl _upnp,
                   String[] _selected_interfaces)
            throws UPnPException
Throws:
UPnPException
Method Detail

getSSDP

public SSDPCore getSSDP()
Specified by:
getSSDP in interface SSDPIGD

start

public void start()
           throws UPnPException
Specified by:
start in interface SSDPIGD
Throws:
UPnPException

searchNow

public void searchNow()
Specified by:
searchNow in interface SSDPIGD

searchNow

public void searchNow(String[] STs)
Specified by:
searchNow in interface SSDPIGD

queryLoop

protected void queryLoop()

search

protected void search()

receivedResult

public void receivedResult(NetworkInterface network_interface,
                           InetAddress local_address,
                           InetAddress originator,
                           String usn,
                           URL location,
                           String st,
                           String al)
Specified by:
receivedResult in interface UPnPSSDPListener

receivedNotify

public void receivedNotify(NetworkInterface network_interface,
                           InetAddress local_address,
                           InetAddress originator,
                           String usn,
                           URL location,
                           String nt,
                           String nts)
Specified by:
receivedNotify in interface UPnPSSDPListener

receivedSearch

public String[] receivedSearch(NetworkInterface network_interface,
                               InetAddress local_address,
                               InetAddress originator,
                               String ST)
Specified by:
receivedSearch in interface UPnPSSDPListener

bytesToBits

protected boolean[] bytesToBits(byte[] bytes)

gotRoot

protected void gotRoot(NetworkInterface network_interface,
                       InetAddress local_address,
                       String usn,
                       URL location)

gotAlive

protected void gotAlive(String usn,
                        URL location)

lostRoot

protected void lostRoot(InetAddress local_address,
                        String usn)

interfaceChanged

public void interfaceChanged(NetworkInterface network_interface)
Specified by:
interfaceChanged in interface UPnPSSDPListener

addListener

public void addListener(SSDPIGDListener l)
Specified by:
addListener in interface SSDPIGD

removeListener

public void removeListener(SSDPIGDListener l)
Specified by:
removeListener in interface SSDPIGD