FMLiveSwitchTransport Class Reference

A transport. More...

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...
 
(instancetype) - initWithTransportCCReportIntervalMs:
 Construct a Transport. More...
 
(bool) - isClosed
 Gets a value indicating whether this instance is closed. More...
 
(int) - nextOutboundTransportSequenceNumber
 Gets the next outbound transport-wide sequence number. More...
 
(void) - removeOnReceive:
 Removes a handler that is raised when data is received. More...
 
(int) - roundTripTime
 Gets the current round-trip-time in milliseconds. More...
 
(void) - sendWithBuffer:
 Sends the specified buffer. More...
 
(FMLiveSwitchTransportCCManager *) - transportCCManager
 Gets the Transport CC Manager. 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...
 
(instancetype) - init
 Initializes a new instance of the FMLiveSwitchSerializable class. 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

(FMLiveSwitchTransport *) + transportWithTransportCCReportIntervalMs:
 Construct a Transport. More...
 
- Class Methods inherited from FMLiveSwitchDynamic
(FMLiveSwitchDynamic *) + dynamic
 
- Class Methods inherited from FMLiveSwitchSerializable
(FMLiveSwitchSerializable *) + serializable
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 

Detailed Description

A transport.

Method Documentation

◆ addOnReceive:

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

Adds a handler that is raised when data is received.

Implemented in FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ addOnReceiveWithBlock

- (FMLiveSwitchDataBuffer*) addOnReceiveWithBlock

Adds a handler that is raised when data is received.

Implemented in FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ addOnReceiveWithBlock:

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

Adds a handler that is raised when data is received.

Implemented in FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ initWithTransportCCReportIntervalMs:

- (instancetype) initWithTransportCCReportIntervalMs: (int)  transportCCReportIntervalMs

Construct a Transport.

Parameters
transportCCReportIntervalMs

◆ isClosed

- (bool) isClosed

Gets a value indicating whether this instance is closed.

Implemented in FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ nextOutboundTransportSequenceNumber

- (int) nextOutboundTransportSequenceNumber

Gets the next outbound transport-wide sequence number.

Returns
The next outbound transport-wide sequence number.

◆ removeOnReceive:

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

Removes a handler that is raised when data is received.

Implemented in FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ roundTripTime

- (int) roundTripTime

Gets the current round-trip-time in milliseconds.

Implemented in FMLiveSwitchIceTransport.

◆ sendWithBuffer:

- (void) sendWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Sends the specified buffer.

Parameters
bufferThe buffer.

Implemented in FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ transportCCManager

- (FMLiveSwitchTransportCCManager*) transportCCManager

Gets the Transport CC Manager.

◆ transportWithTransportCCReportIntervalMs:

+ (FMLiveSwitchTransport*) transportWithTransportCCReportIntervalMs: (int)  transportCCReportIntervalMs

Construct a Transport.

Parameters
transportCCReportIntervalMs