cybergarage-upnp
org.cybergarage.upnp.ssdp.SSDPSearchSocket Class Reference
Inheritance diagram for org.cybergarage.upnp.ssdp.SSDPSearchSocket:
org.cybergarage.upnp.ssdp.HTTPMUSocket

Public Member Functions

 SSDPSearchSocket (String bindAddr, int port, String multicast)
 
 SSDPSearchSocket (InetAddress bindAddr)
 
boolean open (Inet4Address bindAddr)
 
boolean open (Inet6Address bindAddr)
 
boolean open (String bind, String multicast)
 
boolean open (String bindAddr)
 
void addSearchListener (SearchListener listener)
 
void removeSearchListener (SearchListener listener)
 
void performSearchListener (SSDPPacket ssdpPacket)
 
void run ()
 
void start ()
 
void stop ()
 
- Public Member Functions inherited from org.cybergarage.upnp.ssdp.HTTPMUSocket
 HTTPMUSocket ()
 
 HTTPMUSocket (String addr, int port, String bindAddr)
 
String getLocalAddress ()
 
int getMulticastPort ()
 
int getLocalPort ()
 
MulticastSocket getSocket ()
 
InetAddress getMulticastInetAddress ()
 
String getMulticastAddress ()
 
boolean open (String addr, int port, InetAddress bindAddr)
 
boolean open (String addr, int port, String bindAddr)
 
boolean close ()
 
boolean send (String msg, String bindAddr, int bindPort)
 
boolean send (String msg)
 
boolean post (HTTPRequest req, String bindAddr, int bindPort)
 
boolean post (HTTPRequest req)
 
SSDPPacket receive () throws IOException
 

Private Attributes

boolean useIPv6Address
 
ListenerList deviceSearchListenerList = new ListenerList()
 
Thread deviceSearchThread = null
 

Additional Inherited Members

- Protected Member Functions inherited from org.cybergarage.upnp.ssdp.HTTPMUSocket
void finalize ()
 

Constructor & Destructor Documentation

◆ SSDPSearchSocket() [1/2]

org.cybergarage.upnp.ssdp.SSDPSearchSocket.SSDPSearchSocket ( String bindAddr,
int port,
String multicast )
inline
Parameters
bindAddrThe address to bind the service
portThe port used for accepting message
multicastThe multicast address to use as destination
Since
1.8

◆ SSDPSearchSocket() [2/2]

org.cybergarage.upnp.ssdp.SSDPSearchSocket.SSDPSearchSocket ( InetAddress bindAddr)
inline
Parameters
bindAddrthe binding address for senging multicast packet
Since
1.8

Member Function Documentation

◆ addSearchListener()

void org.cybergarage.upnp.ssdp.SSDPSearchSocket.addSearchListener ( SearchListener listener)
inline

◆ open() [1/4]

boolean org.cybergarage.upnp.ssdp.SSDPSearchSocket.open ( Inet4Address bindAddr)
inline

◆ open() [2/4]

boolean org.cybergarage.upnp.ssdp.SSDPSearchSocket.open ( Inet6Address bindAddr)
inline

◆ open() [3/4]

boolean org.cybergarage.upnp.ssdp.SSDPSearchSocket.open ( String bind,
String multicast )
inline

◆ open() [4/4]

boolean org.cybergarage.upnp.ssdp.SSDPSearchSocket.open ( String bindAddr)
inline
Parameters
bindAddrthe hostname of the interface to use for senfing multicast packet
Returns
true if and only if it open the socket
See also
SSDP for default multicast and port destination of the packtes

◆ performSearchListener()

void org.cybergarage.upnp.ssdp.SSDPSearchSocket.performSearchListener ( SSDPPacket ssdpPacket)
inline

◆ removeSearchListener()

void org.cybergarage.upnp.ssdp.SSDPSearchSocket.removeSearchListener ( SearchListener listener)
inline

◆ run()

void org.cybergarage.upnp.ssdp.SSDPSearchSocket.run ( )
inline

◆ start()

void org.cybergarage.upnp.ssdp.SSDPSearchSocket.start ( )
inline

◆ stop()

void org.cybergarage.upnp.ssdp.SSDPSearchSocket.stop ( )
inline

Field Documentation

◆ deviceSearchListenerList

ListenerList org.cybergarage.upnp.ssdp.SSDPSearchSocket.deviceSearchListenerList = new ListenerList()
private

◆ deviceSearchThread

Thread org.cybergarage.upnp.ssdp.SSDPSearchSocket.deviceSearchThread = null
private

◆ useIPv6Address

boolean org.cybergarage.upnp.ssdp.SSDPSearchSocket.useIPv6Address
private

The documentation for this class was generated from the following file: