Documentation
¶
Index ¶
Constants ¶
View Source
const FirstPayloadTimeout = 10 * time.Millisecond
Variables ¶
View Source
var ErrUDPNotSupport = errors.New("udp is not supported")
Functions ¶
Types ¶
type CustomConn ¶
func NewProxyConn ¶
func NewProxyConn(customConn CustomConnOption) *CustomConn
func (*CustomConn) Close ¶
func (c *CustomConn) Close() error
func (*CustomConn) CloseWrite ¶
func (c *CustomConn) CloseWrite() error
func (*CustomConn) NetConn ¶
func (c *CustomConn) NetConn() net.Conn
type CustomConnOption ¶
type FlowConn ¶
type FlowConn struct {
buf.Reader
buf.Writer
i.ReadDeadline
// contains filtered or unexported fields
}
func NewFlowConn ¶
func NewFlowConn(flowConnOption FlowConnOption) *FlowConn
func (*FlowConn) CloseWrite ¶
func (*FlowConn) OkayToUnwrapReader ¶
func (*FlowConn) OkayToUnwrapWriter ¶
func (*FlowConn) UnwrapReader ¶
func (*FlowConn) UnwrapWriter ¶
type FlowConnOption ¶
type NetConnPacketConn ¶
func NewNetConnPacketConn ¶
func NewNetConnPacketConn(conn net.Conn, readFromer udp.ReadFromer, writeToer udp.WriteToer) *NetConnPacketConn
type ProxyCtxKey ¶
type ProxyCtxKey int
Directories
¶
| Path | Synopsis |
|---|---|
|
Package proxy contains all proxies used by Xray.
|
Package proxy contains all proxies used by Xray. |
|
Package vmess contains the implementation of VMess protocol and transportation.
|
Package vmess contains the implementation of VMess protocol and transportation. |
Click to show internal directories.
Click to hide internal directories.