Source File
candidatepair_state.go
Belonging Package
github.com/pion/ice/v4
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>// SPDX-License-Identifier: MITpackage ice// CandidatePairState represent the ICE candidate pair state.type CandidatePairState intconst (// CandidatePairStateWaiting means a check has not been performed for// this pair.CandidatePairStateWaiting CandidatePairState = iota + 1// CandidatePairStateInProgress means a check has been sent for this pair,// but the transaction is in progress.CandidatePairStateInProgress// CandidatePairStateFailed means a check for this pair was already done// and failed, either never producing any response or producing an unrecoverable// failure response.CandidatePairStateFailed// CandidatePairStateSucceeded means a check for this pair was already// done and produced a successful result.CandidatePairStateSucceeded)func ( CandidatePairState) () string {switch {case CandidatePairStateWaiting:return "waiting"case CandidatePairStateInProgress:return "in-progress"case CandidatePairStateFailed:return "failed"case CandidatePairStateSucceeded:return "succeeded"}return "Unknown candidate pair state"}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |