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) - init
 Initializes a new instance of the FMLiveSwitchSerializable class. More...
 
(bool) - isClosed
 Gets a value indicating whether this instance is closed. 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...
 
- 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

(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...
 

Detailed Description

A transport.

Method Documentation

◆ addOnReceive:

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

Adds a handler that is raised when data is received.

Implemented in FMLiveSwitchSctpInnerSctpTransport, FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ addOnReceiveWithBlock

- (FMLiveSwitchDataBuffer*) addOnReceiveWithBlock

Adds a handler that is raised when data is received.

Implemented in FMLiveSwitchSctpInnerSctpTransport, FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ addOnReceiveWithBlock:

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

Adds a handler that is raised when data is received.

Implemented in FMLiveSwitchSctpInnerSctpTransport, FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ init

- (instancetype) init

Initializes a new instance of the FMLiveSwitchSerializable class.

Implements FMLiveSwitchDynamic.

◆ isClosed

- (bool) isClosed

Gets a value indicating whether this instance is closed.

Implemented in FMLiveSwitchSctpInnerSctpTransport, FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ removeOnReceive:

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

Removes a handler that is raised when data is received.

Implemented in FMLiveSwitchSctpInnerSctpTransport, 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 FMLiveSwitchSctpInnerSctpTransport, FMLiveSwitchIceTransport, and FMLiveSwitchDtlsTransport.

◆ transport

+ (FMLiveSwitchTransport*) transport