Data channel base properties/methods. More...
Instance Methods | |
(TDataChannel) | - addOnStateChangeWithBlock |
Adds a handler that is raised when the data channel state changes. More... | |
(void) | - addOnStateChangeWithBlock: |
Adds a handler that is raised when the data channel state changes. More... | |
(long long) | - bytesReceived |
Gets the number of bytes received. More... | |
(long long) | - bytesSent |
Gets the number of bytes sent. More... | |
(NSString *) | - connectionId |
Gets the connection identifier. More... | |
(NSString *) | - id |
Gets the identifier. More... | |
(FMLiveSwitchDataChannelInfo *) | - info |
Gets the data channel info. More... | |
(instancetype) | - initWithLabel:ordered:subprotocol: |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class. More... | |
(instancetype) | - initWithLabel:ordered:subprotocol:internalChannel: |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class. More... | |
(TDataChannel) | - instance |
Gets the current instance. More... | |
(bool) | - isInternal |
Gets a value indicating if this is an internal data channel. More... | |
(bool) | - isTerminated |
Gets a value indicating whether the data channel is currently closed or failed. More... | |
(bool) | - isTerminating |
Gets a value indicating whether the data channel is currently closing. More... | |
(bool) | - isTerminatingOrTerminated |
Gets a value indicating whether the data channel is currently closing, closed, or failed. More... | |
(NSString *) | - label |
Gets the label. More... | |
(long long) | - messagesReceived |
Gets the number of messages received. More... | |
(long long) | - messagesSent |
Gets the number of messages sent. More... | |
(FMLiveSwitchAction1< FMLiveSwitchDataChannelReceiveArgs * > *) | - onReceive |
Gets a callback invoked when a message is received. More... | |
(bool) | - ordered |
Gets a value indicating whether messages will be delivered in the order they are sent. More... | |
(void) | - processStateChange |
Processes a state change. More... | |
(void) | - processStateLockChange |
Processes a state lock change. More... | |
(void) | - raiseDataBytes: |
Raises the OnReceive callback with data bytes. More... | |
(void) | - raiseDataString: |
Raises the OnReceive callback with a data string. More... | |
(void) | - registerDataReceivedWithDataLength: |
Registers that a data has been sent. More... | |
(void) | - registerDataSentWithDataLength: |
Registers that a data has been sent. More... | |
(void) | - removeOnStateChange: |
Removes a handler that is raised when the data channel state changes. More... | |
(FMLiveSwitchFuture< id > *) | - sendDataBytes: |
Sends some bytes. More... | |
(FMLiveSwitchFuture< id > *) | - sendDataString: |
Sends a string. More... | |
(void) | - setOnReceive: |
Sets a callback invoked when a message is received. More... | |
(FMLiveSwitchDataChannelReceiveArgs *) | - setOnReceiveBlock |
Sets a callback invoked when a message is received. More... | |
(void) | - setOnReceiveBlock: |
Sets a callback invoked when a message is received. More... | |
(FMLiveSwitchDataChannelState) | - state |
Gets the state. More... | |
(NSString *) | - streamId |
Gets the stream identifier. More... | |
(NSString *) | - subprotocol |
Gets the subprotocol. More... | |
Class Methods | |
(FMLiveSwitchDataChannelBase *) | + dataChannelBaseWithLabel:ordered:subprotocol: |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class. More... | |
(FMLiveSwitchDataChannelBase *) | + dataChannelBaseWithLabel:ordered:subprotocol:internalChannel: |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class. More... | |
Protected Attributes | |
__pad0__: FMLiveSwitchDynamic<FMLiveSwitchIDataChannel>- (void) addOnStateChange:(FMLiveSwitchAction1<TDataChannel>*)value | |
Data channel base properties/methods.
- (TDataChannel) addOnStateChangeWithBlock |
Adds a handler that is raised when the data channel state changes.
- (void) addOnStateChangeWithBlock: | (void(^)(TDataChannel)) | valueBlock |
Adds a handler that is raised when the data channel state changes.
- (long long) bytesReceived |
Gets the number of bytes received.
- (long long) bytesSent |
Gets the number of bytes sent.
- (NSString*) connectionId |
Gets the connection identifier.
+ (FMLiveSwitchDataChannelBase*) dataChannelBaseWithLabel: | (NSString *) | label | |
ordered: | (bool) | ordered | |
subprotocol: | (NSString *) | subprotocol | |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class.
label | The label. |
ordered | Whether messages will be delivered in the order they are sent. |
subprotocol | The subprotocol. |
+ (FMLiveSwitchDataChannelBase*) dataChannelBaseWithLabel: | (NSString *) | label | |
ordered: | (bool) | ordered | |
subprotocol: | (NSString *) | subprotocol | |
internalChannel: | (bool) | internalChannel | |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class.
label | The label. |
ordered | Whether messages will be delivered in the order they are sent. |
subprotocol | The subprotocol. |
internalChannel | Indicates whether this is an internal channel. |
- (FMLiveSwitchDataChannelInfo*) info |
Gets the data channel info.
- (instancetype) initWithLabel: | (NSString *) | label | |
ordered: | (bool) | ordered | |
subprotocol: | (NSString *) | subprotocol | |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class.
label | The label. |
ordered | Whether messages will be delivered in the order they are sent. |
subprotocol | The subprotocol. |
Implemented in FMLiveSwitchDataChannel.
- (instancetype) initWithLabel: | (NSString *) | label | |
ordered: | (bool) | ordered | |
subprotocol: | (NSString *) | subprotocol | |
internalChannel: | (bool) | internalChannel | |
Initializes a new instance of the FMLiveSwitchDataChannelBase`1 class.
label | The label. |
ordered | Whether messages will be delivered in the order they are sent. |
subprotocol | The subprotocol. |
internalChannel | Indicates whether this is an internal channel. |
- (TDataChannel) instance |
Gets the current instance.
Implemented in FMLiveSwitchDataChannel.
- (bool) isInternal |
Gets a value indicating if this is an internal data channel.
- (bool) isTerminated |
Gets a value indicating whether the data channel is currently closed or failed.
- (bool) isTerminating |
Gets a value indicating whether the data channel is currently closing.
- (bool) isTerminatingOrTerminated |
Gets a value indicating whether the data channel is currently closing, closed, or failed.
- (NSString*) label |
Gets the label.
- (long long) messagesReceived |
Gets the number of messages received.
- (long long) messagesSent |
Gets the number of messages sent.
- (FMLiveSwitchAction1<FMLiveSwitchDataChannelReceiveArgs*>*) onReceive |
Gets a callback invoked when a message is received.
Example:
- (bool) ordered |
Gets a value indicating whether messages will be delivered in the order they are sent.
- (void) processStateChange |
Processes a state change.
- (void) processStateLockChange |
Processes a state lock change.
Implemented in FMLiveSwitchDataChannel.
- (void) raiseDataBytes: | (FMLiveSwitchDataBuffer *) | dataBytes |
Raises the OnReceive callback with data bytes.
dataBytes | The data bytes. |
- (void) raiseDataString: | (NSString *) | dataString |
Raises the OnReceive callback with a data string.
dataString | The data string. |
- (void) registerDataReceivedWithDataLength: | (int) | dataLength |
Registers that a data has been sent.
dataLength | The data length. |
- (void) registerDataSentWithDataLength: | (int) | dataLength |
Registers that a data has been sent.
dataLength | The data length. |
- (void) removeOnStateChange: | (FMLiveSwitchAction1< TDataChannel > *) | value |
Removes a handler that is raised when the data channel state changes.
- (FMLiveSwitchFuture<id>*) sendDataBytes: | (FMLiveSwitchDataBuffer *) | dataBytes |
- (FMLiveSwitchFuture<id>*) sendDataString: | (NSString *) | dataString |
- (void) setOnReceive: | (FMLiveSwitchAction1< FMLiveSwitchDataChannelReceiveArgs * > *) | value |
Sets a callback invoked when a message is received.
Example:
- (FMLiveSwitchDataChannelReceiveArgs*) setOnReceiveBlock |
Sets a callback invoked when a message is received.
Example:
- (void) setOnReceiveBlock: | (void(^)(FMLiveSwitchDataChannelReceiveArgs *)) | valueBlock |
Sets a callback invoked when a message is received.
Example:
- (FMLiveSwitchDataChannelState) state |
Gets the state.
- (NSString*) streamId |
Gets the stream identifier.
- (NSString*) subprotocol |
Gets the subprotocol.
|
protected |