FMLiveSwitchTurnAllocation Class Reference

Instance Methods

(FMLiveSwitchStunError *) - addChannelBindingWithXorRemoteAddress:channelNumber:remoteAddress:
 
(bool) - addPermissionWithRemoteIPAddress:
 
(NSMutableArray *) - channelBindings
 
(FMLiveSwitchTransportAddress *) - clientAddress
 
(void) - close
 
(int) - hasChannelBindingAddressWithRemoteAddress:
 
(FMLiveSwitchTransportAddress *) - hasChannelBindingNumberWithChannelNumber:
 
(bool) - hasPermissionWithRemoteIPAddress:
 
(instancetype) - initWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpires:
 
(instancetype) - initWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpiresBlock:
 
(bool) - isExpired
 
(long long) - lastLifetime
 
(NSString *) - localIPAddress
 
(int) - localPort
 
(NSMutableArray *) - permissions
 
(NSMutableArray *) - publicIPAddresses
 
(NSString *) - realm
 
(bool) - refreshWithLifetime:
 
(FMLiveSwitchDataBuffer *) - reservation
 
(FMLiveSwitchDataBuffer *) - transactionId
 
(NSString *) - username
 

Class Methods

(FMLiveSwitchTurnAllocation *) + allocationWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpires:
 
(FMLiveSwitchTurnAllocation *) + allocationWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpiresBlock:
 

Method Documentation

◆ addChannelBindingWithXorRemoteAddress:channelNumber:remoteAddress:

- (FMLiveSwitchStunError*) addChannelBindingWithXorRemoteAddress: (FMLiveSwitchTransportAddress *)  xorRemoteAddress
channelNumber: (int)  channelNumber
remoteAddress: (FMLiveSwitchTransportAddress *)  remoteAddress 

◆ addPermissionWithRemoteIPAddress:

- (bool) addPermissionWithRemoteIPAddress: (NSString *)  remoteIPAddress

◆ allocationWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpires:

+ (FMLiveSwitchTurnAllocation*) allocationWithTransactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onExpires: (FMLiveSwitchAction1< FMLiveSwitchTransportAddress * > *)  onExpires 

◆ allocationWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpiresBlock:

+ (FMLiveSwitchTurnAllocation*) allocationWithTransactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onExpiresBlock: (void(^)(FMLiveSwitchTransportAddress *))  onExpiresBlock 

◆ channelBindings

- (NSMutableArray*) channelBindings

◆ clientAddress

- (FMLiveSwitchTransportAddress*) clientAddress

◆ close

- (void) close

◆ hasChannelBindingAddressWithRemoteAddress:

- (int) hasChannelBindingAddressWithRemoteAddress: (FMLiveSwitchTransportAddress *)  remoteAddress

◆ hasChannelBindingNumberWithChannelNumber:

- (FMLiveSwitchTransportAddress*) hasChannelBindingNumberWithChannelNumber: (int)  channelNumber

◆ hasPermissionWithRemoteIPAddress:

- (bool) hasPermissionWithRemoteIPAddress: (NSString *)  remoteIPAddress

◆ initWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpires:

- (instancetype) initWithTransactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onExpires: (FMLiveSwitchAction1< FMLiveSwitchTransportAddress * > *)  onExpires 

◆ initWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpiresBlock:

- (instancetype) initWithTransactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onExpiresBlock: (void(^)(FMLiveSwitchTransportAddress *))  onExpiresBlock 

◆ isExpired

- (bool) isExpired

◆ lastLifetime

- (long long) lastLifetime

◆ localIPAddress

- (NSString*) localIPAddress

◆ localPort

- (int) localPort

◆ permissions

- (NSMutableArray*) permissions

◆ publicIPAddresses

- (NSMutableArray*) publicIPAddresses

◆ realm

- (NSString*) realm

◆ refreshWithLifetime:

- (bool) refreshWithLifetime: (long long)  lifetime

◆ reservation

- (FMLiveSwitchDataBuffer*) reservation

◆ transactionId

- (FMLiveSwitchDataBuffer*) transactionId

◆ username

- (NSString*) username