Package org.cybergarage.upnp.ssdp
Class HTTPMUSocket
java.lang.Object
org.cybergarage.upnp.ssdp.HTTPMUSocket
- Direct Known Subclasses:
SSDPNotifySocket
,SSDPSearchSocket
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
close()
protected void
finalize()
int
int
boolean
boolean
open
(String addr, int port, InetAddress bindAddr) boolean
post
(HTTPRequest req) boolean
post
(HTTPRequest req, String bindAddr, int bindPort) receive()
boolean
boolean
toString()
I2P
-
Constructor Details
-
HTTPMUSocket
public HTTPMUSocket() -
HTTPMUSocket
-
-
Method Details
-
finalize
protected void finalize() -
getLocalAddress
-
getMulticastPort
public int getMulticastPort()- Returns:
- the destination port for multicast packet
- Since:
- 1.8
-
getLocalPort
public int getLocalPort()- Returns:
- the source port for multicast packet
- Since:
- 1.8
-
getSocket
- Returns:
- the opened
MulticastSocket
- Since:
- 1.8
-
getMulticastInetAddress
-
getMulticastAddress
-
open
- Parameters:
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 packet
-
open
-
close
public boolean close() -
send
-
send
-
post
-
post
-
receive
- Throws:
IOException
-
toString
I2P
-