public class SSDPPacket extends Object
This class wraps a DatagramPacket to provide SSDP-specific functionality for parsing and handling UDP packets containing SSDP messages. It provides access to both the raw packet data and parsed SSDP message content.
Key features:
This class is used by SSDP components to handle incoming UDP packets containing discovery and advertisement messages, providing convenient access to both network information and message content.
| Modifier and Type | Field and Description |
|---|---|
byte[] |
packetBytes |
| Constructor and Description |
|---|
SSDPPacket(byte[] buf,
int length) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCacheControl() |
byte[] |
getData() |
DatagramPacket |
getDatagramPacket() |
String |
getHost() |
InetAddress |
getHostInetAddress() |
int |
getLeaseTime() |
String |
getLocalAddress() |
String |
getLocation() |
String |
getMAN() |
int |
getMX() |
String |
getNT() |
String |
getNTS() |
String |
getRemoteAddress() |
InetAddress |
getRemoteInetAddress() |
int |
getRemotePort() |
String |
getServer() |
String |
getST() |
long |
getTimeStamp() |
String |
getUSN() |
boolean |
isAlive() |
boolean |
isByeBye() |
boolean |
isDiscover() |
boolean |
isRootDevice() |
void |
setLocalAddress(String addr) |
void |
setTimeStamp(long value) |
String |
toString() |
public String getCacheControl()
public byte[] getData()
public DatagramPacket getDatagramPacket()
public String getHost()
public InetAddress getHostInetAddress()
public int getLeaseTime()
public String getLocalAddress()
public String getLocation()
public String getMAN()
public int getMX()
public String getNT()
public String getNTS()
public String getRemoteAddress()
public InetAddress getRemoteInetAddress()
public int getRemotePort()
public String getServer()
public String getST()
public long getTimeStamp()
public String getUSN()
public boolean isAlive()
public boolean isByeBye()
public boolean isDiscover()
public boolean isRootDevice()
public void setLocalAddress(String addr)
public void setTimeStamp(long value)