Documentation ¶
Index ¶
Constants ¶
View Source
const (
AddrMask byte = 0xf
)
Variables ¶
View Source
var ErrCipherNotSupported = errors.New("cipher not supported")
ErrCipherNotSupported occurs when a cipher is not supported (likely because of security concerns).
View Source
var (
Socks5ConnectedRemote = []byte{0x05, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0x43}
)
Functions ¶
This section is empty.
Types ¶
type Cipher ¶
type Cipher interface { StreamConnCipher PacketConnCipher }
type KcpServer ¶
type KcpServer struct { utils.KcpBase // RedirectMode bool TunnelChan chan Channel TcpListenPorts map[string]int AcceptConn int }
KcpServer used for server
func NewKcpServer ¶
NewKcpServer init KcpServer
func (*KcpServer) ListenInTls ¶
func (*KcpServer) ListenMux ¶
func (serve *KcpServer) ListenMux(conn io.ReadWriteCloser)
func (*KcpServer) StopTunnel ¶
func (*KcpServer) WithChannel ¶
type PacketConnCipher ¶
type PacketConnCipher interface {
PacketConn(net.PacketConn) net.PacketConn
}
type StreamConnCipher ¶
type StreamConnCipher interface { StreamConn(net.Conn) net.Conn NewStreamConn(c net.Conn) *shadowaead.StreamConn }
Click to show internal directories.
Click to hide internal directories.