Package org.cybergarage.upnp.ssdp
Class HTTPUSocket
java.lang.Object
org.cybergarage.upnp.ssdp.HTTPUSocket
- Direct Known Subclasses:
SSDPSearchResponseSocket
public class HTTPUSocket extends Object
-
Constructor Summary
Constructors Constructor Description HTTPUSocket()
HTTPUSocket(int bindPort)
HTTPUSocket(String bindAddr, int bindPort)
-
Method Summary
Modifier and Type Method 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)
-
Constructor Details
-
HTTPUSocket
public HTTPUSocket() -
HTTPUSocket
-
HTTPUSocket
public HTTPUSocket(int bindPort)
-
-
Method Details
-
getDatagramSocket
-
finalize
protected void finalize() -
setLocalAddress
-
getUDPSocket
- Returns:
DatagramSocket
open for receieving packets- Since:
- 1.8
-
getLocalAddress
-
open
public boolean open() -
open
-
open
public boolean open(int bindPort) -
close
public boolean close() -
post
-
receive
-