public class SSDPSearchSocket extends HTTPMUSocket implements Runnable
Constructor and Description |
---|
SSDPSearchSocket(InetAddress bindAddr) |
SSDPSearchSocket(String bindAddr,
int port,
String multicast) |
Modifier and Type | Method and Description |
---|---|
void |
addSearchListener(SearchListener listener) |
boolean |
open(Inet4Address bindAddr) |
boolean |
open(Inet6Address bindAddr) |
boolean |
open(String bindAddr) |
boolean |
open(String bind,
String multicast) |
void |
performSearchListener(SSDPPacket ssdpPacket) |
void |
removeSearchListener(SearchListener listener) |
void |
run() |
void |
start() |
void |
stop() |
close, finalize, getLocalAddress, getLocalPort, getMulticastAddress, getMulticastInetAddress, getMulticastPort, getSocket, open, open, post, post, receive, send, send
public SSDPSearchSocket(String bindAddr, int port, String multicast)
bindAddr
- The address to bind the serviceport
- The port used for accepting messagemulticast
- The multicast address to use as destinationpublic SSDPSearchSocket(InetAddress bindAddr)
bindAddr
- the binding address for sending multicast packetpublic boolean open(Inet4Address bindAddr)
public boolean open(Inet6Address bindAddr)
public boolean open(String bindAddr)
bindAddr
- the hostname of the interface to use for sending multicast packetfor default multicast and port destination of the packets
public void addSearchListener(SearchListener listener)
public void removeSearchListener(SearchListener listener)
public void performSearchListener(SSDPPacket ssdpPacket)
public void start()
public void stop()