com.aelitis.net.upnp.impl.ssdp
Class SSDPIGDImpl
java.lang.Object
com.aelitis.net.upnp.impl.ssdp.SSDPIGDImpl
- All Implemented Interfaces:
- SSDPIGD, UPnPSSDPListener
public class SSDPIGDImpl
- extends java.lang.Object
- implements SSDPIGD, UPnPSSDPListener
- Author:
- parg
Method Summary |
void |
addListener(SSDPIGDListener l)
|
protected boolean[] |
bytesToBits(byte[] bytes)
|
SSDPCore |
getSSDP()
|
protected void |
gotAlive(java.lang.String usn,
java.net.URL location)
|
protected void |
gotRoot(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.lang.String usn,
java.net.URL location)
|
void |
interfaceChanged(java.net.NetworkInterface network_interface)
|
protected void |
lostRoot(java.net.InetAddress local_address,
java.lang.String usn)
|
protected void |
queryLoop()
|
void |
receivedNotify(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.net.InetAddress originator,
java.lang.String usn,
java.net.URL location,
java.lang.String nt,
java.lang.String nts)
|
void |
receivedResult(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.net.InetAddress originator,
java.lang.String usn,
java.net.URL location,
java.lang.String st,
java.lang.String al)
|
java.lang.String[] |
receivedSearch(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.net.InetAddress originator,
java.lang.String ST)
|
void |
removeListener(SSDPIGDListener l)
|
protected void |
search()
|
void |
searchNow()
|
void |
searchNow(java.lang.String[] STs)
|
void |
start()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
this_mon
protected AEMonitor this_mon
SSDPIGDImpl
public SSDPIGDImpl(UPnPImpl _upnp,
java.lang.String[] _selected_interfaces)
throws UPnPException
- Throws:
UPnPException
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(java.lang.String[] STs)
- Specified by:
searchNow
in interface SSDPIGD
queryLoop
protected void queryLoop()
search
protected void search()
receivedResult
public void receivedResult(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.net.InetAddress originator,
java.lang.String usn,
java.net.URL location,
java.lang.String st,
java.lang.String al)
- Specified by:
receivedResult
in interface UPnPSSDPListener
receivedNotify
public void receivedNotify(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.net.InetAddress originator,
java.lang.String usn,
java.net.URL location,
java.lang.String nt,
java.lang.String nts)
- Specified by:
receivedNotify
in interface UPnPSSDPListener
receivedSearch
public java.lang.String[] receivedSearch(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.net.InetAddress originator,
java.lang.String ST)
- Specified by:
receivedSearch
in interface UPnPSSDPListener
bytesToBits
protected boolean[] bytesToBits(byte[] bytes)
gotRoot
protected void gotRoot(java.net.NetworkInterface network_interface,
java.net.InetAddress local_address,
java.lang.String usn,
java.net.URL location)
gotAlive
protected void gotAlive(java.lang.String usn,
java.net.URL location)
lostRoot
protected void lostRoot(java.net.InetAddress local_address,
java.lang.String usn)
interfaceChanged
public void interfaceChanged(java.net.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