-
- All Implemented Interfaces:
public class EvenPortAttribute extends Attribute
The EVEN-PORT attribute is used to ask the TURN server to allocate an even port and optionally allocate the next higher port number. There is one flag supported: R : ask to reserve a second port.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringNAMEpublic final static charDATA_LENGTHbooleanrFlag
-
Method Summary
Modifier and Type Method Description voidsetRFlag(boolean rFlag)Set the R flag. booleanequals(Object obj)Compares two STUN Attributes. StringgetName()Returns the human readable name of this attribute. chargetDataLength()Returns the length of this attribute's body. Array<byte>encode()Returns a binary representation of this attribute. booleanisRFlag()Is the R flag set -
-
Method Detail
-
setRFlag
void setRFlag(boolean rFlag)
Set the R flag.
- Parameters:
rFlag- true of false
-
equals
boolean equals(Object obj)
Compares two STUN Attributes. Attributes are considered equal when their type, length, and all data are the same.
- Parameters:
obj- the object to compare this attribute with.
-
getName
String getName()
Returns the human readable name of this attribute. Attribute names do not really matter from the protocol point of view. They are only used for debugging and readability.
-
getDataLength
char getDataLength()
Returns the length of this attribute's body.
-
isRFlag
boolean isRFlag()
Is the R flag set
-
-
-
-