Package org.cybergarage.upnp.ssdp
Class SSDPSearchSocket
java.lang.Object
org.cybergarage.upnp.ssdp.HTTPMUSocket
org.cybergarage.upnp.ssdp.SSDPSearchSocket
- All Implemented Interfaces:
Runnable
-
Constructor Summary
ConstructorsConstructorDescriptionSSDPSearchSocket(String bindAddr, int port, String multicast) SSDPSearchSocket(InetAddress bindAddr) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSearchListener(SearchListener listener) booleanbooleanbooleanopen(Inet4Address bindAddr) booleanopen(Inet6Address bindAddr) voidperformSearchListener(SSDPPacket ssdpPacket) voidremoveSearchListener(SearchListener listener) voidrun()voidstart()voidstop()Methods inherited from class org.cybergarage.upnp.ssdp.HTTPMUSocket
close, finalize, getLocalAddress, getLocalPort, getMulticastAddress, getMulticastInetAddress, getMulticastPort, getSocket, open, open, post, post, receive, send, send, toString
-
Constructor Details
-
SSDPSearchSocket
- Parameters:
bindAddr- The address to bind the serviceport- The port used for accepting messagemulticast- The multicast address to use as destination- Throws:
IOException- Since:
- 1.8
-
SSDPSearchSocket
- Parameters:
bindAddr- the binding address for sending multicast packet- Throws:
IOException- Since:
- 1.8
-
-
Method Details
-
open
-
open
-
open
-
open
- Parameters:
bindAddr- the hostname of the interface to use for sending multicast packet- Returns:
- true if and only if it open the socket
- See Also:
-
addSearchListener
-
removeSearchListener
-
performSearchListener
-
run
public void run() -
start
public void start() -
stop
public void stop()
-