@@ -58,17 +58,22 @@ typedef struct {
5858 * @brief Peer default configuration (optional)
5959 */
6060typedef struct {
61- uint16_t agent_recv_timeout ; /*!< ICE agent receive timeout setting (unit ms)
62- default: 100ms if set to 0
63- Some STUN/TURN server reply message slow increase this value */
64- esp_peer_default_data_ch_cfg_t data_ch_cfg ; /*!< Configuration of data channel */
65- esp_peer_default_rtp_cfg_t rtp_cfg ; /*!< Configuration of RTP buffer */
66- bool keep_role ; /*!< Do not reset role to controlling when disconnected */
67- bool ipv6_support ; /*!< Support IPv6 */
68- uint8_t max_candidates ; /*!< Maximum ICE candidates to gather
69- Large setting will consume more heap memory
70- Defaults is 10 if set to 0 */
71- bool ice_use_lite_mode ; /**< Enable ICE Lite mode (simplified ICE for always-on servers) */
61+ uint16_t agent_recv_timeout ; /*!< ICE agent receive timeout setting (unit ms)
62+ default: 100ms if set to 0
63+ Some STUN/TURN server reply message slow increase this value */
64+ esp_peer_default_data_ch_cfg_t data_ch_cfg ; /*!< Configuration of data channel */
65+ esp_peer_default_rtp_cfg_t rtp_cfg ; /*!< Configuration of RTP buffer */
66+ bool keep_role ; /*!< Do not reset role to controlling when disconnected */
67+ bool ipv6_support ; /*!< Support IPv6 */
68+ uint8_t max_candidates ; /*!< Maximum ICE candidates to gather
69+ Large setting will consume more heap memory
70+ Defaults is 16 if set to 0 */
71+
72+ uint8_t alive_binding_retries ; /*!< Max retries for peer keepalive via STUN Binding requests.
73+ Sent every 6s; if no response after `alive_binding_retries` attempts,
74+ peer is marked disconnected.
75+ Default: 5 (0 = use default, 0xFF = disable check). */
76+ bool ice_use_lite_mode ; /**< Enable ICE Lite mode (simplified ICE for always-on servers) */
7277} esp_peer_default_cfg_t ;
7378
7479/**
0 commit comments