-
- All Implemented Interfaces:
public class SoftwareAttribute extends Attribute
The SOFTWARE attribute contains a textual description of the software being used by the software or the client, including manufacturer and version number. The attribute has no impact on operation of the protocol, and serves only as a tool for diagnostic and debugging purposes. The value of SOFTWARE is variable length. Its length MUST be a multiple of 4 (measured in bytes) in order to guarantee alignment of attributes on word boundaries.
-
-
Method Summary
Modifier and Type Method Description Array<byte>getSoftware()Returns a (cloned) byte array containing the data value of the software attribute. voidsetSoftware(Array<byte> software)Copies the specified binary array into the the data value of the software attribute. Array<byte>encode()Returns a binary representation of this attribute. chargetDataLength()Returns the length of this attribute's body. StringgetName()Returns the human readable name of this attribute. booleanequals(Object obj)Compares two STUN Attributes. -
-
Method Detail
-
getSoftware
Array<byte> getSoftware()
Returns a (cloned) byte array containing the data value of the software attribute.
-
setSoftware
void setSoftware(Array<byte> software)
Copies the specified binary array into the the data value of the software attribute.
- Parameters:
software- the binary array containing the software.
-
getDataLength
char getDataLength()
Returns the length of this attribute's body.
-
-
-
-