Documentation ¶
Index ¶
- func NewInboundConnSession(conn io.ReadWriteCloser) (protocol.ConnSession, *protocol.Request, error)
- func NewOutboundConnSession(req *protocol.Request, conn io.ReadWriteCloser) (protocol.ConnSession, error)
- type SimpleSocksConnSession
- func (m *SimpleSocksConnSession) Close() error
- func (m *SimpleSocksConnSession) GetRequest() *protocol.Request
- func (m *SimpleSocksConnSession) Read(p []byte) (int, error)
- func (m *SimpleSocksConnSession) SetMeter(meter stat.TrafficMeter)
- func (m *SimpleSocksConnSession) Write(p []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInboundConnSession ¶ added in v0.3.0
func NewInboundConnSession(conn io.ReadWriteCloser) (protocol.ConnSession, *protocol.Request, error)
func NewOutboundConnSession ¶
func NewOutboundConnSession(req *protocol.Request, conn io.ReadWriteCloser) (protocol.ConnSession, error)
Types ¶
type SimpleSocksConnSession ¶
type SimpleSocksConnSession struct { protocol.ConnSession protocol.NeedMeter // contains filtered or unexported fields }
func (*SimpleSocksConnSession) Close ¶
func (m *SimpleSocksConnSession) Close() error
func (*SimpleSocksConnSession) GetRequest ¶
func (m *SimpleSocksConnSession) GetRequest() *protocol.Request
func (*SimpleSocksConnSession) SetMeter ¶
func (m *SimpleSocksConnSession) SetMeter(meter stat.TrafficMeter)
Click to show internal directories.
Click to hide internal directories.