mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 03:41:29 +08:00
添加 github.com/pion/dtls 代码
This commit is contained in:
16
dtls-2.0.9/pkg/protocol/recordlayer/errors.go
Normal file
16
dtls-2.0.9/pkg/protocol/recordlayer/errors.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// Package recordlayer implements the TLS Record Layer https://tools.ietf.org/html/rfc5246#section-6
|
||||
package recordlayer
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/pion/dtls/v2/pkg/protocol"
|
||||
)
|
||||
|
||||
var (
|
||||
errBufferTooSmall = &protocol.TemporaryError{Err: errors.New("buffer is too small")} //nolint:goerr113
|
||||
errInvalidPacketLength = &protocol.TemporaryError{Err: errors.New("packet length and declared length do not match")} //nolint:goerr113
|
||||
errSequenceNumberOverflow = &protocol.InternalError{Err: errors.New("sequence number overflow")} //nolint:goerr113
|
||||
errUnsupportedProtocolVersion = &protocol.FatalError{Err: errors.New("unsupported protocol version")} //nolint:goerr113
|
||||
errInvalidContentType = &protocol.TemporaryError{Err: errors.New("invalid content type")} //nolint:goerr113
|
||||
)
|
Reference in New Issue
Block a user