public class HTTPUSocket extends Object
This class provides UDP socket functionality specifically designed for SSDP operations in UPnP networks. It handles both unicast and multicast UDP communication for device discovery and advertisement.
Key features:
This class is used by SSDP components to send discovery messages (M-SEARCH) and receive device advertisements (NOTIFY messages) over UDP multicast and unicast communication.
| Constructor and Description |
|---|
HTTPUSocket() |
HTTPUSocket(int bindPort) |
HTTPUSocket(String bindAddr,
int bindPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
close() |
protected void |
finalize() |
DatagramSocket |
getDatagramSocket() |
String |
getLocalAddress() |
DatagramSocket |
getUDPSocket() |
boolean |
open() |
boolean |
open(int bindPort) |
boolean |
open(String bindAddr,
int bindPort) |
boolean |
post(String addr,
int port,
String msg) |
SSDPPacket |
receive() |
void |
setLocalAddress(String addr) |
String |
toString()
I2P
|
public HTTPUSocket()
public HTTPUSocket(int bindPort)
public HTTPUSocket(String bindAddr, int bindPort)
public boolean close()
public DatagramSocket getDatagramSocket()
public String getLocalAddress()
public DatagramSocket getUDPSocket()
DatagramSocket open for receieving packetspublic boolean open()
public boolean open(int bindPort)
public boolean open(String bindAddr, int bindPort)
public SSDPPacket receive()
public void setLocalAddress(String addr)