Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Direct ¶
type Direct struct {
// contains filtered or unexported fields
}
type DirectAdapter ¶
type DirectAdapter struct {
// contains filtered or unexported fields
}
DirectAdapter is a directly connected adapter
func (*DirectAdapter) ReadWriter ¶
func (d *DirectAdapter) ReadWriter() io.ReadWriter
ReadWriter is used to handle network traffic
type RejectAdapter ¶
type RejectAdapter struct { }
RejectAdapter is a reject connected adapter
func (*RejectAdapter) ReadWriter ¶
func (r *RejectAdapter) ReadWriter() io.ReadWriter
ReadWriter is used to handle network traffic
type ShadowSocks ¶
type ShadowSocks struct {
// contains filtered or unexported fields
}
func NewShadowSocks ¶
func (*ShadowSocks) Generator ¶
func (ss *ShadowSocks) Generator(addr *C.Addr) (adapter C.ProxyAdapter, err error)
func (*ShadowSocks) Name ¶
func (ss *ShadowSocks) Name() string
type ShadowsocksAdapter ¶
type ShadowsocksAdapter struct {
// contains filtered or unexported fields
}
ShadowsocksAdapter is a shadowsocks adapter
func (*ShadowsocksAdapter) Close ¶
func (ss *ShadowsocksAdapter) Close()
Close is used to close connection
func (*ShadowsocksAdapter) Conn ¶
func (ss *ShadowsocksAdapter) Conn() net.Conn
func (*ShadowsocksAdapter) ReadWriter ¶
func (ss *ShadowsocksAdapter) ReadWriter() io.ReadWriter
ReadWriter is used to handle network traffic
type TrafficTrack ¶
func NewTrafficTrack ¶
func NewTrafficTrack(conn net.Conn, traffic *C.Traffic) *TrafficTrack
Click to show internal directories.
Click to hide internal directories.