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

java.lang.Object
  extended by com.aelitis.net.upnp.impl.ssdp.SSDPCore
All Implemented Interfaces:
MCGroupAdapter, UPnPSSDP

public class SSDPCore
extends Object
implements UPnPSSDP, MCGroupAdapter

Author:
parg

Field Summary
protected  AEMonitor this_mon
           
 
Fields inherited from interface com.aelitis.net.upnp.UPnPSSDP
SSDP_GROUP_ADDRESS, SSDP_GROUP_PORT
 
Method Summary
 void addListener(UPnPSSDPListener l)
           
 int getControlPort()
           
protected  String getServerName()
           
static SSDPCore getSingleton(UPnPSSDPAdapter adapter, String group_address, int group_port, int control_port, String[] selected_interfaces)
           
protected  void informNotify(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String nt, String nts)
           
protected  void informResult(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String usn, URL location, String st, String al)
           
protected  String[] informSearch(NetworkInterface network_interface, InetAddress local_address, InetAddress originator, String st)
           
 void interfaceChanged(NetworkInterface network_interface)
           
 void log(Throwable e)
           
 void notify(String NT, String NTS, String UUID, String url)
           
 void received(NetworkInterface network_interface, InetAddress local_address, InetSocketAddress originator, byte[] packet_data, int length)
           
 void removeListener(UPnPSSDPListener l)
           
 void search(String[] STs)
           
protected  void sendMC(String str)
           
 void trace(String str)
           
 
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
Method Detail

getSingleton

public static SSDPCore getSingleton(UPnPSSDPAdapter adapter,
                                    String group_address,
                                    int group_port,
                                    int control_port,
                                    String[] selected_interfaces)
                             throws UPnPException
Throws:
UPnPException

getControlPort

public int getControlPort()
Specified by:
getControlPort in interface UPnPSSDP

trace

public void trace(String str)
Specified by:
trace in interface MCGroupAdapter

log

public void log(Throwable e)
Specified by:
log in interface MCGroupAdapter

notify

public void notify(String NT,
                   String NTS,
                   String UUID,
                   String url)
Specified by:
notify in interface UPnPSSDP

getServerName

protected String getServerName()

search

public void search(String[] STs)
Specified by:
search in interface UPnPSSDP

sendMC

protected void sendMC(String str)

interfaceChanged

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

received

public void received(NetworkInterface network_interface,
                     InetAddress local_address,
                     InetSocketAddress originator,
                     byte[] packet_data,
                     int length)
Specified by:
received in interface MCGroupAdapter

informResult

protected void informResult(NetworkInterface network_interface,
                            InetAddress local_address,
                            InetAddress originator,
                            String usn,
                            URL location,
                            String st,
                            String al)

informNotify

protected void informNotify(NetworkInterface network_interface,
                            InetAddress local_address,
                            InetAddress originator,
                            String usn,
                            URL location,
                            String nt,
                            String nts)

informSearch

protected String[] informSearch(NetworkInterface network_interface,
                                InetAddress local_address,
                                InetAddress originator,
                                String st)

addListener

public void addListener(UPnPSSDPListener l)
Specified by:
addListener in interface UPnPSSDP

removeListener

public void removeListener(UPnPSSDPListener l)
Specified by:
removeListener in interface UPnPSSDP