org.cybergarage.upnp.ssdp
Class SSDPSearchSocket
java.lang.Object
org.cybergarage.upnp.ssdp.HTTPMUSocket
org.cybergarage.upnp.ssdp.SSDPSearchSocket
- All Implemented Interfaces:
- Runnable
public class SSDPSearchSocket
- extends HTTPMUSocket
- implements Runnable
Methods inherited from class org.cybergarage.upnp.ssdp.HTTPMUSocket |
close, finalize, getLocalAddress, getLocalPort, getMulticastAddress, getMulticastInetAddress, getMulticastPort, getSocket, open, open, post, post, receive, send, send |
SSDPSearchSocket
public SSDPSearchSocket(String bindAddr,
int port,
String multicast)
- Parameters:
bindAddr
- The address to bind the serviceport
- The port used for accepting messagemulticast
- The multicast address to use as destination- Since:
- 1.8
SSDPSearchSocket
public SSDPSearchSocket(InetAddress bindAddr)
open
public boolean open(String bind,
String multicast)
open
public boolean open(String bindAddr)
- Parameters:
bindAddr
- the 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
addSearchListener
public void addSearchListener(SearchListener listener)
removeSearchListener
public void removeSearchListener(SearchListener listener)
performSearchListener
public void performSearchListener(SSDPPacket ssdpPacket)
run
public void run()
- Specified by:
run
in interface Runnable
start
public void start()
stop
public void stop()
Copyright © 2010 DomoWare. All Rights Reserved.