FMLiveSwitchDtlsTransport Class Reference

Instance Methods

(void) - addOnReceive:
 Adds a handler that is raised when data is received. More...
 
(FMLiveSwitchDataBuffer *) - addOnReceiveWithBlock
 Adds a handler that is raised when data is received. More...
 
(void) - addOnReceiveWithBlock:
 Adds a handler that is raised when data is received. More...
 
(void) - addOnStateChange:
 
(FMLiveSwitchDtlsTransport *) - addOnStateChangeWithBlock
 
(void) - addOnStateChangeWithBlock:
 
(bool) - closingShouldNotTriggerGlobalNonGracefulShutdown
 
(bool) - connectionShouldStayAliveWhenClosed
 
(void) - disableInnerTransport
 
(NSMutableArray *) - encryptionModes
 
(FMLiveSwitchError *) - error
 
(NSString *) - id
 
(instancetype) - initWithLockObject:connectionId:innerTransport:localCertificates:cipherSuites:serverMinVersion:serverMaxVersion:clientVersion:preferredRole:
 
(FMLiveSwitchTransport *) - innerTransport
 
(bool) - isClosed
 Gets a value indicating whether this instance is closed. More...
 
(NSMutableArray *) - localCertificates
 
(FMLiveSwitchDataBuffer *) - localKey
 
(FMLiveSwitchDtlsParameters *) - localParameters
 
(FMLiveSwitchDataBuffer *) - localSalt
 
(FMLiveSwitchDataBuffer *) - remoteKey
 
(FMLiveSwitchDtlsParameters *) - remoteParameters
 
(FMLiveSwitchDataBuffer *) - remoteSalt
 
(void) - removeOnReceive:
 Removes a handler that is raised when data is received. More...
 
(void) - removeOnStateChange:
 
(int) - selectedSrtpProtectionProfile
 
(void) - sendWithBuffer:
 Sends the specified buffer. More...
 
(void) - setClosingShouldNotTriggerGlobalNonGracefulShutdown:
 
(void) - setConnectionShouldStayAliveWhenClosed:
 
(void) - setState:
 
(void) - setStopOnConnected:
 
(bool) - start
 
(FMLiveSwitchDtlsTransportState) - state
 
(bool) - stop
 
(bool) - stopOnConnected
 
(void) - updateInfo:
 
(void) - updateStats:
 
- Instance Methods inherited from FMLiveSwitchTransport
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 
(int) - roundTripTime
 Gets the current round-trip-time in milliseconds. More...
 
- Instance Methods inherited from FMLiveSwitchDynamic
(NSMutableDictionary< NSString *, id > *) - dynamicProperties
 Gets all dynamic properties on this instance. More...
 
(id- getDynamicValueWithKey:
 Gets a property value from the local cache. More...
 
(void) - setDynamicValueWithKey:value:
 Sets a property value in the local cache. More...
 
(bool) - unsetDynamicValueWithKey:
 Removes a property value from the local cache. More...
 

Class Methods

(bool) + isDtlsWithData:
 
(FMLiveSwitchDtlsTransport *) + transportWithLockObject:connectionId:innerTransport:localCertificates:cipherSuites:serverMinVersion:serverMaxVersion:clientVersion:preferredRole:
 
- Class Methods inherited from FMLiveSwitchTransport
(FMLiveSwitchTransport *) + transport
 
- Class Methods inherited from FMLiveSwitchDynamic
(FMLiveSwitchDynamic *) + dynamic
 
- Class Methods inherited from FMLiveSwitchSerializable
(FMLiveSwitchSerializable *) + serializable
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 

Method Documentation

◆ addOnReceive:

- (void) addOnReceive: (FMLiveSwitchAction1< FMLiveSwitchDataBuffer * > *)  value

Adds a handler that is raised when data is received.

Implements FMLiveSwitchTransport.

◆ addOnReceiveWithBlock

- (FMLiveSwitchDataBuffer*) addOnReceiveWithBlock

Adds a handler that is raised when data is received.

Implements FMLiveSwitchTransport.

◆ addOnReceiveWithBlock:

- (void) addOnReceiveWithBlock: (void(^)(FMLiveSwitchDataBuffer *))  valueBlock

Adds a handler that is raised when data is received.

Implements FMLiveSwitchTransport.

◆ addOnStateChange:

- (void) addOnStateChange: (FMLiveSwitchAction1< FMLiveSwitchDtlsTransport * > *)  value

◆ addOnStateChangeWithBlock

- (FMLiveSwitchDtlsTransport*) addOnStateChangeWithBlock

◆ addOnStateChangeWithBlock:

- (void) addOnStateChangeWithBlock: (void(^)(FMLiveSwitchDtlsTransport *))  valueBlock

◆ closingShouldNotTriggerGlobalNonGracefulShutdown

- (bool) closingShouldNotTriggerGlobalNonGracefulShutdown

◆ connectionShouldStayAliveWhenClosed

- (bool) connectionShouldStayAliveWhenClosed

◆ disableInnerTransport

- (void) disableInnerTransport

◆ encryptionModes

- (NSMutableArray*) encryptionModes

◆ error

- (FMLiveSwitchError*) error

◆ id

- (NSString*) id

◆ initWithLockObject:connectionId:innerTransport:localCertificates:cipherSuites:serverMinVersion:serverMaxVersion:clientVersion:preferredRole:

- (instancetype) initWithLockObject: (id lockObject
connectionId: (NSString *)  connectionId
innerTransport: (FMLiveSwitchTransport *)  innerTransport
localCertificates: (NSMutableArray *)  localCertificates
cipherSuites: (NSMutableArray *)  cipherSuites
serverMinVersion: (FMLiveSwitchDtlsProtocolVersion)  serverMinVersion
serverMaxVersion: (FMLiveSwitchDtlsProtocolVersion)  serverMaxVersion
clientVersion: (FMLiveSwitchDtlsProtocolVersion)  clientVersion
preferredRole: (FMLiveSwitchDtlsRole)  preferredRole 

◆ innerTransport

- (FMLiveSwitchTransport*) innerTransport

◆ isClosed

- (bool) isClosed

Gets a value indicating whether this instance is closed.

Implements FMLiveSwitchTransport.

◆ isDtlsWithData:

+ (bool) isDtlsWithData: (FMLiveSwitchDataBuffer *)  data

◆ localCertificates

- (NSMutableArray*) localCertificates

◆ localKey

- (FMLiveSwitchDataBuffer*) localKey

◆ localParameters

- (FMLiveSwitchDtlsParameters*) localParameters

◆ localSalt

- (FMLiveSwitchDataBuffer*) localSalt

◆ remoteKey

- (FMLiveSwitchDataBuffer*) remoteKey

◆ remoteParameters

- (FMLiveSwitchDtlsParameters*) remoteParameters

◆ remoteSalt

- (FMLiveSwitchDataBuffer*) remoteSalt

◆ removeOnReceive:

- (void) removeOnReceive: (FMLiveSwitchAction1< FMLiveSwitchDataBuffer * > *)  value

Removes a handler that is raised when data is received.

Implements FMLiveSwitchTransport.

◆ removeOnStateChange:

- (void) removeOnStateChange: (FMLiveSwitchAction1< FMLiveSwitchDtlsTransport * > *)  value

◆ selectedSrtpProtectionProfile

- (int) selectedSrtpProtectionProfile

◆ sendWithBuffer:

- (void) sendWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Sends the specified buffer.

Parameters
bufferThe buffer.

Implements FMLiveSwitchTransport.

◆ setClosingShouldNotTriggerGlobalNonGracefulShutdown:

- (void) setClosingShouldNotTriggerGlobalNonGracefulShutdown: (bool)  value

◆ setConnectionShouldStayAliveWhenClosed:

- (void) setConnectionShouldStayAliveWhenClosed: (bool)  value

◆ setState:

- (void) setState: (FMLiveSwitchDtlsTransportState)  value

◆ setStopOnConnected:

- (void) setStopOnConnected: (bool)  value

◆ start

- (bool) start

◆ state

- (FMLiveSwitchDtlsTransportState) state

◆ stop

- (bool) stop

◆ stopOnConnected

- (bool) stopOnConnected

◆ transportWithLockObject:connectionId:innerTransport:localCertificates:cipherSuites:serverMinVersion:serverMaxVersion:clientVersion:preferredRole:

+ (FMLiveSwitchDtlsTransport*) transportWithLockObject: (id lockObject
connectionId: (NSString *)  connectionId
innerTransport: (FMLiveSwitchTransport *)  innerTransport
localCertificates: (NSMutableArray *)  localCertificates
cipherSuites: (NSMutableArray *)  cipherSuites
serverMinVersion: (FMLiveSwitchDtlsProtocolVersion)  serverMinVersion
serverMaxVersion: (FMLiveSwitchDtlsProtocolVersion)  serverMaxVersion
clientVersion: (FMLiveSwitchDtlsProtocolVersion)  clientVersion
preferredRole: (FMLiveSwitchDtlsRole)  preferredRole 

◆ updateInfo:

- (void) updateInfo: (FMLiveSwitchTransportInfo *)  info

◆ updateStats:

- (void) updateStats: (FMLiveSwitchTransportStats *)  stats