Commit b6f1b590 authored by Ghislain MARY's avatar Ghislain MARY

Add list of ICE transactions.

This prevents ignoring delayed responses if a new transaction has been
added by a pair.
parent 70f85f40
......@@ -152,7 +152,6 @@ typedef struct _IceCandidatePair {
IceCandidate *remote; /**< Pointer to the remote candidate of the pair */
IceCandidatePairState state; /**< State of the candidate pair */
uint64_t priority; /**< Priority of the candidate pair */
UInt96 transactionID; /**< Transaction ID of the connectivity check sent for the candidate pair */
MSTimeSpec transmission_time; /**< Time when the connectivity check for the candidate pair has been sent */
uint32_t rto; /**< Duration of the retransmit timer for the connectivity check sent for the candidate pair in ms */
uint8_t retransmissions; /**< Number of retransmissions for the connectivity check sent for the candidate pair */
......@@ -179,6 +178,11 @@ typedef struct _IceValidCandidatePair {
bool_t selected; /**< Boolean value telling whether this valid candidate pair has been selected or not */
} IceValidCandidatePair;
typedef struct _IceTransaction {
UInt96 transactionID; /**< Transaction ID of the connectivity check sent for the candidate pair */
IceCandidatePair *pair; /**< A pointer to the candidate pair associated with the transaction. */
} IceTransaction;
/**
* Structure representing an ICE check list.
*
......@@ -201,6 +205,7 @@ typedef struct _IceCheckList {
MSList *foundations; /**< List of IcePairFoundation structures */
MSList *local_componentIDs; /**< List of uint16_t */
MSList *remote_componentIDs; /**< List of uint16_t */
MSList *transaction_list; /**< List of IceTransaction structures */
IceCheckListState state; /**< Global state of the ICE check list */
MSTimeSpec ta_time; /**< Time when the Ta timer has been processed for the last time */
MSTimeSpec keepalive_time; /**< Time when the last keepalive packet has been sent for this stream */
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment