Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInboundConnSession ¶
func NewInboundConnSession(conn io.ReadWriteCloser) (protocol.ConnSession, error)
Types ¶
type SocksConnInboundSession ¶
type SocksConnInboundSession struct { protocol.ConnSession protocol.NeedRespond // contains filtered or unexported fields }
func (*SocksConnInboundSession) Close ¶
func (i *SocksConnInboundSession) Close() error
func (*SocksConnInboundSession) GetRequest ¶
func (i *SocksConnInboundSession) GetRequest() *protocol.Request
func (*SocksConnInboundSession) Read ¶
func (i *SocksConnInboundSession) Read(p []byte) (int, error)
type SocksInboundPacketSession ¶
type SocksInboundPacketSession struct { protocol.PacketSession // contains filtered or unexported fields }
func NewInboundPacketSession ¶
func NewInboundPacketSession(conn *net.UDPConn) (*SocksInboundPacketSession, error)
func (*SocksInboundPacketSession) Close ¶
func (i *SocksInboundPacketSession) Close() error
func (*SocksInboundPacketSession) ReadPacket ¶
func (i *SocksInboundPacketSession) ReadPacket() (*protocol.Request, []byte, error)
func (*SocksInboundPacketSession) WritePacket ¶
Click to show internal directories.
Click to hide internal directories.