FMIceLinkStunFingerprintAttribute Class Reference
Inherits from | FMIceLinkStunAttribute : NSObject |
---|---|
Declared in | FMIceLinkStunFingerprintAttribute.h FMIceLinkStunFingerprintAttribute.m |
Overview
The FINGERPRINT attribute MAY be present in all STUN messages. The
value of the attribute is computed as the CRC-32 of the STUN message
up to (but excluding) the FINGERPRINT attribute itself, XOR'ed with
the 32-bit value 0x5354554e (the XOR helps in cases where an
application packet is also using CRC-32 in it). The 32-bit CRC is
the one defined in ITU V.42 [ITU.V42.2002], which has a generator
polynomial of x32+x26+x23+x22+x16+x12+x11+x10+x8+x7+x5+x4+x2+x+1.
When present, the FINGERPRINT attribute MUST be the last attribute in
the message, and thus will appear after MESSAGE-INTEGRITY.
– description
Returns a string that represents this instance.
@return A string that represents this instance.
- (NSString *)description
Discussion
Returns a string that represents this instance.
@return A string that represents this instance.
Declared In
FMIceLinkStunFingerprintAttribute.h
+ fingerprintAttribute
Initializes a new instance of the FMIceLinkStunFingerprintAttribute class.
+ (FMIceLinkStunFingerprintAttribute *)fingerprintAttribute
Discussion
Initializes a new instance of the FMIceLinkStunFingerprintAttribute class.
Declared In
FMIceLinkStunFingerprintAttribute.h
– getValueLength
Gets the length of the attribute value.
@return
- (int)getValueLength
Discussion
Gets the length of the attribute value.
@return
Declared In
FMIceLinkStunFingerprintAttribute.h
– init
Initializes a new instance of the FMIceLinkStunFingerprintAttribute class.
- (instancetype)init
Discussion
Initializes a new instance of the FMIceLinkStunFingerprintAttribute class.
Declared In
FMIceLinkStunFingerprintAttribute.h
– messageBuffer
Gets the message buffer.
- (FMIceLinkDataBuffer *)messageBuffer
Discussion
Gets the message buffer.
Declared In
FMIceLinkStunFingerprintAttribute.h
+ readValueFromWithBuffer:offset:messageBuffer:
Initializes a new instance of the FMIceLinkStunFingerprintAttribute class.
+ (FMIceLinkStunFingerprintAttribute *)readValueFromWithBuffer:(FMIceLinkDataBuffer *)buffer offset:(int)offset messageBuffer:(FMIceLinkDataBuffer *)messageBuffer
Parameters
buffer |
The buffer. |
---|---|
offset |
The offset. |
messageBuffer |
The message buffer thus far. @return |
Discussion
Initializes a new instance of the FMIceLinkStunFingerprintAttribute class.
Declared In
FMIceLinkStunFingerprintAttribute.h
– setMessageBuffer:
Sets the message buffer.
- (void)setMessageBuffer:(FMIceLinkDataBuffer *)value
Discussion
Sets the message buffer.
Declared In
FMIceLinkStunFingerprintAttribute.h
– typeValue
Gets the type value.
- (int)typeValue
Discussion
Gets the type value.
Declared In
FMIceLinkStunFingerprintAttribute.h
– writeValueToWithBuffer:offset:
Writes the attribute value to a data buffer.
- (void)writeValueToWithBuffer:(FMIceLinkDataBuffer *)buffer offset:(int)offset
Parameters
buffer |
The buffer. |
---|---|
offset |
The offset. |
Discussion
Writes the attribute value to a data buffer.
Declared In
FMIceLinkStunFingerprintAttribute.h