FMIceLinkStunTurnLifetimeAttribute Class Reference
Inherits from | FMIceLinkStunAttribute : NSObject |
---|---|
Declared in | FMIceLinkStunTurnLifetimeAttribute.h FMIceLinkStunTurnLifetimeAttribute.m |
Overview
The LIFETIME attribute represents the duration for which the server
will maintain an allocation in the absence of a refresh (in seconds).
– 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
FMIceLinkStunTurnLifetimeAttribute.h
– getValueLength
Gets the length of the attribute value.
@return
- (int)getValueLength
Discussion
Gets the length of the attribute value.
@return
Declared In
FMIceLinkStunTurnLifetimeAttribute.h
– initWithLifetime:
Initializes a new instance of the FMIceLinkStunTurnLifetimeAttribute class.
- (instancetype)initWithLifetime:(long long)lifetime
Parameters
lifetime |
The allocation duration in seconds. |
---|
Discussion
Initializes a new instance of the FMIceLinkStunTurnLifetimeAttribute class.
Declared In
FMIceLinkStunTurnLifetimeAttribute.h
– lifetime
Gets the allocation duration in seconds.
- (long long)lifetime
Discussion
Gets the allocation duration in seconds.
Declared In
FMIceLinkStunTurnLifetimeAttribute.h
+ lifetimeAttributeWithLifetime:
Initializes a new instance of the FMIceLinkStunTurnLifetimeAttribute class.
+ (FMIceLinkStunTurnLifetimeAttribute *)lifetimeAttributeWithLifetime:(long long)lifetime
Parameters
lifetime |
The allocation duration in seconds. |
---|
Discussion
Initializes a new instance of the FMIceLinkStunTurnLifetimeAttribute class.
Declared In
FMIceLinkStunTurnLifetimeAttribute.h
+ readValueFromWithBuffer:offset:
Initializes a new instance of the FMIceLinkStunTurnLifetimeAttribute class.
+ (FMIceLinkStunTurnLifetimeAttribute *)readValueFromWithBuffer:(FMIceLinkDataBuffer *)buffer offset:(int)offset
Parameters
buffer |
The buffer. |
---|---|
offset |
The offset. @return |
Discussion
Initializes a new instance of the FMIceLinkStunTurnLifetimeAttribute class.
Declared In
FMIceLinkStunTurnLifetimeAttribute.h
– setLifetime:
Sets the allocation duration in seconds.
- (void)setLifetime:(long long)value
Discussion
Sets the allocation duration in seconds.
Declared In
FMIceLinkStunTurnLifetimeAttribute.h
– typeValue
Gets the type value.
- (int)typeValue
Discussion
Gets the type value.
Declared In
FMIceLinkStunTurnLifetimeAttribute.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
FMIceLinkStunTurnLifetimeAttribute.h