Maintains a ledger of connection state transitions with timestamps. More...
Instance Methods | |
| (NSString *) | - description |
| Provides a string representation of all recorded state transitions. More... | |
| (instancetype) | - initWithConnectionId:client:connectionType:clientId:mediaProtocol: |
| Initializes a new instance of the ConnectionStateLedger class. More... | |
| (void) | - recordActiveCandidatePairSet |
| Records setting active candidate pair. More... | |
| (void) | - recordActiveCandidatePairUnset |
| Records removal of active candidate pair. More... | |
| (void) | - recordAnswerWithState:sent:renegotiation: |
| Records an offer. More... | |
| (void) | - recordConnectionState: |
| Records a new connection state transition with current timestamp. More... | |
| (void) | - recordDtlsConnected |
| Records the event indicating that DTLS transport is Connected. More... | |
| (void) | - recordDtlsConnecting |
| Records the event indicating that DTLS transport is Connecting. More... | |
| (void) | - recordErrorWithState:error: |
| Records an error. More... | |
| (void) | - recordLocalCertificateWithCertificate64:asn164: |
| Records local DTLS certificate. More... | |
| (void) | - recordMediaIntentWithState:sent: |
| Records a media intent with current timestamp. More... | |
| (void) | - recordOfferWithState:sent:renegotiation: |
| Records an offer. More... | |
| (void) | - recordPeerReflexiveRemoteCandidateDiscovered |
| Records a discovered peer reflexive remote candidate. More... | |
| (void) | - recordProcessedRemoteCandidateWithState: |
| Records a signaled remote candidate. More... | |
| (void) | - recordReceivedIceApplicationData: |
| Records information about ICE application data received during connection establishment. More... | |
| (void) | - recordSignaledRemoteCandidateWithState: |
| Records a signaled remote candidate. More... | |
Class Methods | |
| (FMLiveSwitchConnectionStateLedger *) | + connectionStateLedgerWithConnectionId:client:connectionType:clientId:mediaProtocol: |
| Initializes a new instance of the ConnectionStateLedger class. More... | |
Maintains a ledger of connection state transitions with timestamps.
Tracks the history of state changes for a specific connection.
| + (FMLiveSwitchConnectionStateLedger*) connectionStateLedgerWithConnectionId: | (NSString *) | connectionId | |
| client: | (bool) | client | |
| connectionType: | (NSString *) | connectionType | |
| clientId: | (NSString *) | clientId | |
| mediaProtocol: | (FMLiveSwitchMediaProtocol) | mediaProtocol | |
Initializes a new instance of the ConnectionStateLedger class.
| connectionId | The unique identifier for the connection to track. |
| client | Indicates whether this ledger is for the client rather than for a server. |
| connectionType | Indicates the connection type. |
| clientId | The unique identifier for the client. |
| mediaProtocol | The media protocol of this connection. |
| - (NSString*) description |
Provides a string representation of all recorded state transitions.
| - (instancetype) initWithConnectionId: | (NSString *) | connectionId | |
| client: | (bool) | client | |
| connectionType: | (NSString *) | connectionType | |
| clientId: | (NSString *) | clientId | |
| mediaProtocol: | (FMLiveSwitchMediaProtocol) | mediaProtocol | |
Initializes a new instance of the ConnectionStateLedger class.
| connectionId | The unique identifier for the connection to track. |
| client | Indicates whether this ledger is for the client rather than for a server. |
| connectionType | Indicates the connection type. |
| clientId | The unique identifier for the client. |
| mediaProtocol | The media protocol of this connection. |
| - (void) recordActiveCandidatePairSet |
Records setting active candidate pair.
| - (void) recordActiveCandidatePairUnset |
Records removal of active candidate pair.
| - (void) recordAnswerWithState: | (FMLiveSwitchConnectionState) | state | |
| sent: | (bool) | sent | |
| renegotiation: | (bool) | renegotiation | |
Records an offer.
| - (void) recordConnectionState: | (FMLiveSwitchConnectionState) | state |
Records a new connection state transition with current timestamp.
| state | The new connection state to record. |
| - (void) recordDtlsConnected |
Records the event indicating that DTLS transport is Connected.
| - (void) recordDtlsConnecting |
Records the event indicating that DTLS transport is Connecting.
| - (void) recordErrorWithState: | (FMLiveSwitchConnectionState) | state | |
| error: | (NSString *) | error | |
Records an error.
| - (void) recordLocalCertificateWithCertificate64: | (NSString *) | certificate64 | |
| asn164: | (NSString *) | asn164 | |
Records local DTLS certificate.
| certificate64 | Hexadecimal representation of the certificate. |
| asn164 | Hexadecimal representation of the ASN.1 of the certificate. |
| - (void) recordMediaIntentWithState: | (FMLiveSwitchConnectionState) | state | |
| sent: | (bool) | sent | |
Records a media intent with current timestamp.
| - (void) recordOfferWithState: | (FMLiveSwitchConnectionState) | state | |
| sent: | (bool) | sent | |
| renegotiation: | (bool) | renegotiation | |
Records an offer.
| - (void) recordPeerReflexiveRemoteCandidateDiscovered |
Records a discovered peer reflexive remote candidate.
| - (void) recordProcessedRemoteCandidateWithState: | (FMLiveSwitchConnectionState) | state |
Records a signaled remote candidate.
| - (void) recordReceivedIceApplicationData: | (NSString *) | data |
Records information about ICE application data received during connection establishment.
This diagnostic information helps troubleshoot connectivity issues by showing what types of data were received from remote peers.
| data | A summary string of the received application data |
| - (void) recordSignaledRemoteCandidateWithState: | (FMLiveSwitchConnectionState) | state |
Records a signaled remote candidate.