mirror of
https://github.com/yuanyuanxiang/SimpleRemoter.git
synced 2026-01-22 07:14:15 +08:00
Feature: Add Go TCP server framework
This commit is contained in:
23
server/go/connection/errors.go
Normal file
23
server/go/connection/errors.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package connection
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
// ErrConnectionClosed indicates the connection is closed
|
||||
ErrConnectionClosed = errors.New("connection closed")
|
||||
|
||||
// ErrServerClosed indicates the server is shut down
|
||||
ErrServerClosed = errors.New("server closed")
|
||||
|
||||
// ErrMaxConnections indicates max connections reached
|
||||
ErrMaxConnections = errors.New("max connections reached")
|
||||
|
||||
// ErrInvalidPacket indicates an invalid packet
|
||||
ErrInvalidPacket = errors.New("invalid packet")
|
||||
|
||||
// ErrUnsupportedProtocol indicates unsupported protocol
|
||||
ErrUnsupportedProtocol = errors.New("unsupported protocol")
|
||||
|
||||
// ErrDecompressFailed indicates decompression failure
|
||||
ErrDecompressFailed = errors.New("decompression failed")
|
||||
)
|
||||
Reference in New Issue
Block a user