Package org.cybergarage.upnp.ssdp
Class SSDPPacket
java.lang.Object
org.cybergarage.upnp.ssdp.SSDPPacket
public class SSDPPacket extends Object
-
Field Summary
Fields Modifier and Type Field Description byte[]packetBytes -
Constructor Summary
Constructors Constructor Description SSDPPacket(byte[] buf, int length) -
Method Summary
Modifier and Type Method Description StringgetCacheControl()byte[]getData()DatagramPacketgetDatagramPacket()StringgetHost()InetAddressgetHostInetAddress()intgetLeaseTime()StringgetLocalAddress()StringgetLocation()StringgetMAN()intgetMX()StringgetNT()StringgetNTS()StringgetRemoteAddress()InetAddressgetRemoteInetAddress()intgetRemotePort()StringgetServer()StringgetST()longgetTimeStamp()StringgetUSN()booleanisAlive()booleanisByeBye()booleanisDiscover()booleanisRootDevice()voidsetLocalAddress(String addr)voidsetTimeStamp(long value)StringtoString()
-
Field Details
-
packetBytes
public byte[] packetBytes
-
-
Constructor Details
-
SSDPPacket
public SSDPPacket(byte[] buf, int length)
-
-
Method Details
-
getDatagramPacket
-
setLocalAddress
-
getLocalAddress
-
setTimeStamp
public void setTimeStamp(long value) -
getTimeStamp
public long getTimeStamp() -
getRemoteInetAddress
-
getRemoteAddress
-
getRemotePort
public int getRemotePort() -
getData
public byte[] getData() -
getHost
-
getCacheControl
-
getLocation
-
getMAN
-
getST
-
getNT
-
getNTS
-
getServer
-
getUSN
-
getMX
public int getMX() -
getHostInetAddress
-
isRootDevice
public boolean isRootDevice() -
isDiscover
public boolean isDiscover() -
isAlive
public boolean isAlive() -
isByeBye
public boolean isByeBye() -
getLeaseTime
public int getLeaseTime() -
toString
-