Versions in this module Expand all Collapse all v1 v1.24.4 Aug 19, 2016 Changes in this version + var ErrUnsupportedStreamType = errors.New("Unsupported stream type.") + func DialToDest(src v2net.Address, dest v2net.Destination) (net.Conn, error) + func RegisterAuthenticator(name string, factory AuthenticatorFactory, configCreator loader.ConfigCreator) error + func SubstituteDialer(dialer SystemDialerAdapter) error + func UseAlternativeSystemDialer(dialer SystemDialer) + type Authenticator interface + Open func(*alloc.Buffer) bool + Overhead func() int + Seal func(*alloc.Buffer) + func CreateAuthenticator(name string, config AuthenticatorConfig) (Authenticator, error) + func NewAuthenticatorChain(auths ...Authenticator) Authenticator + type AuthenticatorChain struct + func (this *AuthenticatorChain) Open(payload *alloc.Buffer) bool + func (this *AuthenticatorChain) Overhead() int + func (this *AuthenticatorChain) Seal(payload *alloc.Buffer) + type AuthenticatorConfig interface + func CreateAuthenticatorConfig(rawConfig []byte) (string, AuthenticatorConfig, error) + type AuthenticatorFactory interface + Create func(AuthenticatorConfig) Authenticator + type Connection interface + func Dial(src v2net.Address, dest v2net.Destination, settings *StreamSettings) (Connection, error) + type ConnectionHandler func(Connection) + type DefaultSystemDialer struct + func (this *DefaultSystemDialer) Dial(src v2net.Address, dest v2net.Destination) (net.Conn, error) + type Dialer func(src v2net.Address, dest v2net.Destination) (Connection, error) + var KCPDialer Dialer + var RawTCPDialer Dialer + var TCPDialer Dialer + var UDPDialer Dialer + var WSDialer Dialer + type ListenFunc func(address v2net.Address, port v2net.Port) (Listener, error) + var ErrClosedConnection = errors.New("Connection already closed.") + var KCPListenFunc ListenFunc + var RawTCPListenFunc ListenFunc + var TCPListenFunc ListenFunc + var WSListenFunc ListenFunc + type Listener interface + Accept func() (Connection, error) + Addr func() net.Addr + Close func() error + type Reusable interface + Reusable func() bool + SetReusable func(reuse bool) + type SimpleSystemDialer struct + func (this *SimpleSystemDialer) Dial(src v2net.Address, dest v2net.Destination) (net.Conn, error) + type StreamConnectionType int + const StreamConnectionTypeKCP + const StreamConnectionTypeRawTCP + const StreamConnectionTypeTCP + const StreamConnectionTypeWebSocket + type StreamSecurityType int + const StreamSecurityTypeNone + const StreamSecurityTypeTLS + type StreamSettings struct + Security StreamSecurityType + TLSSettings *TLSSettings + Type StreamConnectionType + func (this *StreamSettings) IsCapableOf(streamType StreamConnectionType) bool + type SysFd interface + SysFd func() (int, error) + type SystemDialer interface + Dial func(source v2net.Address, destination v2net.Destination) (net.Conn, error) + func WithAdapter(dialer SystemDialerAdapter) SystemDialer + type SystemDialerAdapter interface + Dial func(network string, address string) (net.Conn, error) + type TCPHub struct + func ListenTCP(address v2net.Address, port v2net.Port, callback ConnectionHandler, ...) (*TCPHub, error) + func (this *TCPHub) Close() + type TLSSettings struct + AllowInsecure bool + Certs []tls.Certificate + func (this *TLSSettings) GetTLSConfig() *tls.Config Incompatible versions in this module v3.50.2+incompatible Oct 29, 2018 Other modules containing this package github.com/unifyproxy/v2ray-core/v4