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
All Methods Instance Methods Concrete Methods 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 Detail
-
HTTPUSocket
public HTTPUSocket()
-
HTTPUSocket
public HTTPUSocket(String bindAddr, int bindPort)
-
HTTPUSocket
public HTTPUSocket(int bindPort)
-
-
Method Detail
-
getDatagramSocket
public DatagramSocket getDatagramSocket()
-
setLocalAddress
public void setLocalAddress(String addr)
-
getUDPSocket
public DatagramSocket getUDPSocket()
- Returns:
DatagramSocket
open for receieving packets- Since:
- 1.8
-
getLocalAddress
public String getLocalAddress()
-
open
public boolean open()
-
open
public boolean open(String bindAddr, int bindPort)
-
open
public boolean open(int bindPort)
-
close
public boolean close()
-
receive
public SSDPPacket receive()
-
-