1 Star 0 Fork 0

上海老李/turn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
errors.go 2.01 KB
一键复制 编辑 原始数据 按行查看 历史
Steffen Vogel 提交于 2023-04-18 13:31 . Make package REUSE compliant
// SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
// SPDX-License-Identifier: MIT
package turn
import "errors"
var (
errRelayAddressInvalid = errors.New("turn: RelayAddress must be valid IP to use RelayAddressGeneratorStatic")
errNoAvailableConns = errors.New("turn: PacketConnConfigs and ConnConfigs are empty, unable to proceed")
errConnUnset = errors.New("turn: PacketConnConfig must have a non-nil Conn")
errListenerUnset = errors.New("turn: ListenerConfig must have a non-nil Listener")
errListeningAddressInvalid = errors.New("turn: RelayAddressGenerator has invalid ListeningAddress")
errRelayAddressGeneratorUnset = errors.New("turn: RelayAddressGenerator in RelayConfig is unset")
errMaxRetriesExceeded = errors.New("turn: max retries exceeded")
errMaxPortNotZero = errors.New("turn: MaxPort must be not 0")
errMinPortNotZero = errors.New("turn: MaxPort must be not 0")
errNilConn = errors.New("turn: conn cannot not be nil")
errTODO = errors.New("turn: TODO")
errAlreadyListening = errors.New("turn: already listening")
errFailedToClose = errors.New("turn: Server failed to close")
errFailedToRetransmitTransaction = errors.New("turn: failed to retransmit transaction")
errAllRetransmissionsFailed = errors.New("all retransmissions failed for")
errChannelBindNotFound = errors.New("no binding found for channel")
errSTUNServerAddressNotSet = errors.New("STUN server address is not set for the client")
errOneAllocateOnly = errors.New("only one Allocate() caller is allowed")
errAlreadyAllocated = errors.New("already allocated")
errNonSTUNMessage = errors.New("non-STUN message from STUN server")
errFailedToDecodeSTUN = errors.New("failed to decode STUN message")
errUnexpectedSTUNRequestMessage = errors.New("unexpected STUN request message")
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nwaycn/turn.git
git@gitee.com:nwaycn/turn.git
nwaycn
turn
turn
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385