cybergarage-upnp
org.cybergarage.upnp.ssdp.HTTPMUSocket Class Reference
Inheritance diagram for org.cybergarage.upnp.ssdp.HTTPMUSocket:
org.cybergarage.upnp.ssdp.SSDPNotifySocket org.cybergarage.upnp.ssdp.SSDPSearchSocket

Public Member Functions

 HTTPMUSocket ()
 
 HTTPMUSocket (String addr, int port, String bindAddr)
 
String getLocalAddress ()
 
int getMulticastPort ()
 
int getLocalPort ()
 
MulticastSocket getSocket ()
 
InetAddress getMulticastInetAddress ()
 
String getMulticastAddress ()
 
boolean open (String addr, int port, InetAddress bindAddr)
 
boolean open (String addr, int port, String bindAddr)
 
boolean close ()
 
boolean send (String msg, String bindAddr, int bindPort)
 
boolean send (String msg)
 
boolean post (HTTPRequest req, String bindAddr, int bindPort)
 
boolean post (HTTPRequest req)
 
SSDPPacket receive () throws IOException
 

Protected Member Functions

void finalize ()
 

Private Attributes

InetSocketAddress ssdpMultiGroup = null
 
MulticastSocket ssdpMultiSock = null
 
NetworkInterface ssdpMultiIf = null
 

Constructor & Destructor Documentation

◆ HTTPMUSocket() [1/2]

org.cybergarage.upnp.ssdp.HTTPMUSocket.HTTPMUSocket ( )
inline

◆ HTTPMUSocket() [2/2]

org.cybergarage.upnp.ssdp.HTTPMUSocket.HTTPMUSocket ( String addr,
int port,
String bindAddr )
inline

Member Function Documentation

◆ close()

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.close ( )
inline

◆ finalize()

void org.cybergarage.upnp.ssdp.HTTPMUSocket.finalize ( )
inlineprotected

◆ getLocalAddress()

String org.cybergarage.upnp.ssdp.HTTPMUSocket.getLocalAddress ( )
inline

◆ getLocalPort()

int org.cybergarage.upnp.ssdp.HTTPMUSocket.getLocalPort ( )
inline
Returns
the source port for multicast packet
Since
1.8

◆ getMulticastAddress()

String org.cybergarage.upnp.ssdp.HTTPMUSocket.getMulticastAddress ( )
inline

◆ getMulticastInetAddress()

InetAddress org.cybergarage.upnp.ssdp.HTTPMUSocket.getMulticastInetAddress ( )
inline

◆ getMulticastPort()

int org.cybergarage.upnp.ssdp.HTTPMUSocket.getMulticastPort ( )
inline
Returns
the destination port for multicast packet
Since
1.8

◆ getSocket()

MulticastSocket org.cybergarage.upnp.ssdp.HTTPMUSocket.getSocket ( )
inline
Returns
the opened MulticastSocket
Since
1.8

◆ open() [1/2]

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.open ( String addr,
int port,
InetAddress bindAddr )
inline
Parameters
addrString rappresenting the multicast hostname to join into.
portint rappresenting the port to be use poth as source and destination
bindAddrInetAddress which identify the hostname of the interface to use for sending and recieving multicast packet

◆ open() [2/2]

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.open ( String addr,
int port,
String bindAddr )
inline

◆ post() [1/2]

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.post ( HTTPRequest req)
inline

◆ post() [2/2]

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.post ( HTTPRequest req,
String bindAddr,
int bindPort )
inline

◆ receive()

SSDPPacket org.cybergarage.upnp.ssdp.HTTPMUSocket.receive ( ) throws IOException
inline

◆ send() [1/2]

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.send ( String msg)
inline

◆ send() [2/2]

boolean org.cybergarage.upnp.ssdp.HTTPMUSocket.send ( String msg,
String bindAddr,
int bindPort )
inline

Field Documentation

◆ ssdpMultiGroup

InetSocketAddress org.cybergarage.upnp.ssdp.HTTPMUSocket.ssdpMultiGroup = null
private

◆ ssdpMultiIf

NetworkInterface org.cybergarage.upnp.ssdp.HTTPMUSocket.ssdpMultiIf = null
private

◆ ssdpMultiSock

MulticastSocket org.cybergarage.upnp.ssdp.HTTPMUSocket.ssdpMultiSock = null
private

The documentation for this class was generated from the following file: