shadowsocksr

package module
v0.0.0-...-c9ab93f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSTCPConn

type SSTCPConn struct {
	net.Conn
	*streamCipher.StreamCipher
	IObfs     obfs.IObfs
	IProtocol protocol.IProtocol
	// contains filtered or unexported fields
}

SSTCPConn the struct that override the net.Conn methods

func NewSSTCPConn

func NewSSTCPConn(c net.Conn, cipher *streamCipher.StreamCipher) *SSTCPConn

func (*SSTCPConn) Close

func (c *SSTCPConn) Close() error

func (*SSTCPConn) GetIv

func (c *SSTCPConn) GetIv() (iv []byte)

func (*SSTCPConn) GetKey

func (c *SSTCPConn) GetKey() (key []byte)

func (*SSTCPConn) Read

func (c *SSTCPConn) Read(b []byte) (n int, err error)

func (*SSTCPConn) Write

func (c *SSTCPConn) Write(b []byte) (n int, err error)

Directories

Path Synopsis
leakybuf
Provides leaky buffer, based on the example in Effective Go.
Provides leaky buffer, based on the example in Effective Go.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL