public class HTTPMUSocket extends Object
Constructor and Description |
---|
HTTPMUSocket() |
HTTPMUSocket(String addr,
int port,
String bindAddr) |
Modifier and Type | Method and Description |
---|---|
boolean |
close() |
protected void |
finalize() |
String |
getLocalAddress() |
int |
getLocalPort() |
String |
getMulticastAddress() |
InetAddress |
getMulticastInetAddress() |
int |
getMulticastPort() |
MulticastSocket |
getSocket() |
boolean |
open(String addr,
int port,
InetAddress bindAddr) |
boolean |
open(String addr,
int port,
String bindAddr) |
boolean |
post(HTTPRequest req) |
boolean |
post(HTTPRequest req,
String bindAddr,
int bindPort) |
SSDPPacket |
receive() |
boolean |
send(String msg) |
boolean |
send(String msg,
String bindAddr,
int bindPort) |
public String getLocalAddress()
public int getMulticastPort()
public int getLocalPort()
public MulticastSocket getSocket()
MulticastSocket
public InetAddress getMulticastInetAddress()
public String getMulticastAddress()
public boolean open(String addr, int port, InetAddress bindAddr)
addr
- String
rappresenting the multicast hostname to join into.port
- int rappresenting the port to be use poth as source and destinationbindAddr
- InetAddress
which identify the hostname of the interface
to use for sending and recieving multicast packetpublic boolean close()
public boolean send(String msg)
public boolean post(HTTPRequest req, String bindAddr, int bindPort)
public boolean post(HTTPRequest req)
public SSDPPacket receive() throws IOException
IOException