Documentation ¶
Overview ¶
R.I.P Shadowsocks
Index ¶
- Constants
- func ChunkKeyGenerator(iv []byte) func() []byte
- func HeaderKeyGenerator(key []byte, iv []byte) func() []byte
- func PasswordToCipherKey(password string, keySize int) []byte
- type AesCfb
- type Authenticator
- type ChaCha20
- type ChunkReader
- type Cipher
- type Config
- type KeyGenerator
- type Request
- type Shadowsocks
Constants ¶
View Source
const ( AddrTypeIPv4 = 1 AddrTypeIPv6 = 4 AddrTypeDomain = 3 )
View Source
const (
AuthSize = 10
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(keygen KeyGenerator) *Authenticator
func (*Authenticator) Authenticate ¶
func (this *Authenticator) Authenticate(auth []byte, data []byte) []byte
type ChunkReader ¶
type ChunkReader struct {
// contains filtered or unexported fields
}
func NewChunkReader ¶
func NewChunkReader(reader io.Reader, auth *Authenticator) *ChunkReader
func (*ChunkReader) Read ¶
func (this *ChunkReader) Read() (*alloc.Buffer, error)
func (*ChunkReader) Release ¶ added in v1.11.1
func (this *ChunkReader) Release()
type Cipher ¶
type Config ¶
type Shadowsocks ¶
type Shadowsocks struct {
// contains filtered or unexported fields
}
func NewShadowsocks ¶
func NewShadowsocks(config *Config, packetDispatcher dispatcher.PacketDispatcher) *Shadowsocks
func (*Shadowsocks) Close ¶
func (this *Shadowsocks) Close()
func (*Shadowsocks) Listen ¶
func (this *Shadowsocks) Listen(port v2net.Port) error
func (*Shadowsocks) Port ¶
func (this *Shadowsocks) Port() v2net.Port
Click to show internal directories.
Click to hide internal directories.