mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-09 02:39:56 +08:00
添加 github.com/pion/dtls 代码
This commit is contained in:
14
dtls-2.0.9/pkg/protocol/extension/errors.go
Normal file
14
dtls-2.0.9/pkg/protocol/extension/errors.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package extension
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/pion/dtls/v2/pkg/protocol"
|
||||
)
|
||||
|
||||
var (
|
||||
errBufferTooSmall = &protocol.TemporaryError{Err: errors.New("buffer is too small")} //nolint:goerr113
|
||||
errInvalidExtensionType = &protocol.FatalError{Err: errors.New("invalid extension type")} //nolint:goerr113
|
||||
errInvalidSNIFormat = &protocol.FatalError{Err: errors.New("invalid server name format")} //nolint:goerr113
|
||||
errLengthMismatch = &protocol.InternalError{Err: errors.New("data length and declared length do not match")} //nolint:goerr113
|
||||
)
|
Reference in New Issue
Block a user