FMLiveSwitchSctpInnerSctpTransport 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...
 
(instancetype) - initWithLockObject:scheduler:mode:
 
(bool) - isClosed
 Gets a value indicating whether this instance is closed. More...
 
(FMLiveSwitchSctpInnerSctpTransportMode) - mode
 
(int) - nextTransportSequenceNumber
 Gets the next Transport-Wide Sequence Number. More...
 
(void) - removeOnReceive:
 Removes a handler that is raised when data is received. More...
 
(void) - sendWithBuffer:
 Sends the specified buffer. More...
 
(void) - setMode:
 
(bool) - start
 
(bool) - stop
 
- 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

(FMLiveSwitchSctpInnerSctpTransport *) + innerSctpTransportWithLockObject:scheduler:mode:
 
- 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.

◆ initWithLockObject:scheduler:mode:

- (instancetype) initWithLockObject: (id lockObject
scheduler: (FMLiveSwitchScheduler *)  scheduler
mode: (FMLiveSwitchSctpInnerSctpTransportMode)  mode 

◆ innerSctpTransportWithLockObject:scheduler:mode:

+ (FMLiveSwitchSctpInnerSctpTransport*) innerSctpTransportWithLockObject: (id lockObject
scheduler: (FMLiveSwitchScheduler *)  scheduler
mode: (FMLiveSwitchSctpInnerSctpTransportMode)  mode 

◆ isClosed

- (bool) isClosed

Gets a value indicating whether this instance is closed.

Implements FMLiveSwitchTransport.

◆ mode

- (FMLiveSwitchSctpInnerSctpTransportMode) mode

◆ nextTransportSequenceNumber

- (int) nextTransportSequenceNumber

Gets the next Transport-Wide Sequence Number.

Values ranger between -2^16 and 2^16 and wrap around.

Implements FMLiveSwitchTransport.

◆ removeOnReceive:

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

Removes a handler that is raised when data is received.

Implements FMLiveSwitchTransport.

◆ sendWithBuffer:

- (void) sendWithBuffer: (FMLiveSwitchDataBuffer *)  buffer

Sends the specified buffer.

Parameters
bufferThe buffer.

Implements FMLiveSwitchTransport.

◆ setMode:

- (void) setMode: (FMLiveSwitchSctpInnerSctpTransportMode)  value

◆ start

- (bool) start

◆ stop

- (bool) stop