FMLiveSwitchTurnUdpAllocation Class Reference

Instance Methods

(void) - close
 
(instancetype) - initWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceive:onExpires:
 
(instancetype) - initWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceiveBlock:onExpiresBlock:
 
(bool) - isClosed
 
(NSString *) - localIPAddress
 
(int) - localPort
 
(NSMutableArray *) - publicIPAddresses
 
(bool) - sendDataWithBuffer:remoteAddress:exception:
 
(FMLiveSwitchDatagramSocket *) - socket
 
(void) - startReceiving
 
(FMLiveSwitchStreamSocket *) - tcpServerSocket
 
(FMLiveSwitchDatagramSocket *) - udpServerSocket
 
- Instance Methods inherited from FMLiveSwitchTurnAllocation
(FMLiveSwitchStunError *) - addChannelBindingWithXorRemoteAddress:channelNumber:remoteAddress:
 
(bool) - addPermissionWithRemoteIPAddress:
 
(NSMutableArray *) - channelBindings
 
(FMLiveSwitchTransportAddress *) - clientAddress
 
(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
 
(NSMutableArray *) - permissions
 
(NSString *) - realm
 
(bool) - refreshWithLifetime:
 
(FMLiveSwitchDataBuffer *) - reservation
 
(FMLiveSwitchDataBuffer *) - transactionId
 
(NSString *) - username
 

Class Methods

(FMLiveSwitchTurnUdpAllocation *) + udpAllocationWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceive:onExpires:
 
(FMLiveSwitchTurnUdpAllocation *) + udpAllocationWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceiveBlock:onExpiresBlock:
 
- Class Methods inherited from FMLiveSwitchTurnAllocation
(FMLiveSwitchTurnAllocation *) + allocationWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpires:
 
(FMLiveSwitchTurnAllocation *) + allocationWithTransactionId:reservation:clientAddress:username:realm:lifetime:onExpiresBlock:
 

Method Documentation

◆ close

- (void) close

◆ initWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceive:onExpires:

- (instancetype) initWithUdpServerSocket: (FMLiveSwitchDatagramSocket *)  udpServerSocket
tcpServerSocket: (FMLiveSwitchStreamSocket *)  tcpServerSocket
transactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
socket: (FMLiveSwitchDatagramSocket *)  socket
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onReceive: (FMLiveSwitchAction3< FMLiveSwitchTurnUdpAllocation *, FMLiveSwitchTransportAddress *, FMLiveSwitchDataBuffer * > *)  onReceive
onExpires: (FMLiveSwitchAction1< FMLiveSwitchTransportAddress * > *)  onExpires 

◆ initWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceiveBlock:onExpiresBlock:

- (instancetype) initWithUdpServerSocket: (FMLiveSwitchDatagramSocket *)  udpServerSocket
tcpServerSocket: (FMLiveSwitchStreamSocket *)  tcpServerSocket
transactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
socket: (FMLiveSwitchDatagramSocket *)  socket
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onReceiveBlock: (void(^)(FMLiveSwitchTurnUdpAllocation *, FMLiveSwitchTransportAddress *, FMLiveSwitchDataBuffer *))  onReceiveBlock
onExpiresBlock: (void(^)(FMLiveSwitchTransportAddress *))  onExpiresBlock 

◆ isClosed

- (bool) isClosed

◆ localIPAddress

- (NSString*) localIPAddress

◆ localPort

- (int) localPort

◆ publicIPAddresses

- (NSMutableArray*) publicIPAddresses

◆ sendDataWithBuffer:remoteAddress:exception:

- (bool) sendDataWithBuffer: (FMLiveSwitchDataBuffer *)  buffer
remoteAddress: (FMLiveSwitchTransportAddress *)  remoteAddress
exception: (NSException **)  exception 

◆ socket

◆ startReceiving

- (void) startReceiving

◆ tcpServerSocket

- (FMLiveSwitchStreamSocket*) tcpServerSocket

◆ udpAllocationWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceive:onExpires:

+ (FMLiveSwitchTurnUdpAllocation*) udpAllocationWithUdpServerSocket: (FMLiveSwitchDatagramSocket *)  udpServerSocket
tcpServerSocket: (FMLiveSwitchStreamSocket *)  tcpServerSocket
transactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
socket: (FMLiveSwitchDatagramSocket *)  socket
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onReceive: (FMLiveSwitchAction3< FMLiveSwitchTurnUdpAllocation *, FMLiveSwitchTransportAddress *, FMLiveSwitchDataBuffer * > *)  onReceive
onExpires: (FMLiveSwitchAction1< FMLiveSwitchTransportAddress * > *)  onExpires 

◆ udpAllocationWithUdpServerSocket:tcpServerSocket:transactionId:reservation:socket:clientAddress:username:realm:lifetime:onReceiveBlock:onExpiresBlock:

+ (FMLiveSwitchTurnUdpAllocation*) udpAllocationWithUdpServerSocket: (FMLiveSwitchDatagramSocket *)  udpServerSocket
tcpServerSocket: (FMLiveSwitchStreamSocket *)  tcpServerSocket
transactionId: (FMLiveSwitchDataBuffer *)  transactionId
reservation: (FMLiveSwitchDataBuffer *)  reservation
socket: (FMLiveSwitchDatagramSocket *)  socket
clientAddress: (FMLiveSwitchTransportAddress *)  clientAddress
username: (NSString *)  username
realm: (NSString *)  realm
lifetime: (long long)  lifetime
onReceiveBlock: (void(^)(FMLiveSwitchTurnUdpAllocation *, FMLiveSwitchTransportAddress *, FMLiveSwitchDataBuffer *))  onReceiveBlock
onExpiresBlock: (void(^)(FMLiveSwitchTransportAddress *))  onExpiresBlock 

◆ udpServerSocket

- (FMLiveSwitchDatagramSocket*) udpServerSocket