public class HTTPUSocket extends Object
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) |
public HTTPUSocket()
public HTTPUSocket(String bindAddr, int bindPort)
public HTTPUSocket(int bindPort)
public DatagramSocket getDatagramSocket()
public void setLocalAddress(String addr)
public DatagramSocket getUDPSocket()
DatagramSocket
open for receieving packetspublic String getLocalAddress()
public boolean open()
public boolean open(String bindAddr, int bindPort)
public boolean open(int bindPort)
public boolean close()
public SSDPPacket receive()