v2ray-core: github.com/v2ray/v2ray-core/transport/internet/domainsocket Index | Files

package domainsocket

import "github.com/v2ray/v2ray-core/transport/internet/domainsocket"

Index

Package Files

config.go config.pb.go dial.go errgen.go errors.generated.go listener.go

Variables

var File_transport_internet_domainsocket_config_proto protoreflect.FileDescriptor

func Dial Uses

func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.MemoryStreamConfig) (internet.Connection, error)

func Listen Uses

func Listen(ctx context.Context, address net.Address, port net.Port, streamSettings *internet.MemoryStreamConfig, handler internet.ConnHandler) (internet.Listener, error)

type Config Uses

type Config struct {

    // Path of the domain socket. This overrides the IP/Port parameter from
    // upstream caller.
    Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
    // Abstract speicifies whether to use abstract namespace or not.
    // Traditionally Unix domain socket is file system based. Abstract domain
    // socket can be used without acquiring file lock.
    Abstract bool `protobuf:"varint,2,opt,name=abstract,proto3" json:"abstract,omitempty"`
    // Some apps, eg. haproxy, use the full length of sockaddr_un.sun_path to
    // connect(2) or bind(2) when using abstract UDS.
    Padding             bool `protobuf:"varint,3,opt,name=padding,proto3" json:"padding,omitempty"`
    AcceptProxyProtocol bool `protobuf:"varint,4,opt,name=acceptProxyProtocol,proto3" json:"acceptProxyProtocol,omitempty"`
    // contains filtered or unexported fields
}

func (*Config) Descriptor Uses

func (*Config) Descriptor() ([]byte, []int)

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetAbstract Uses

func (x *Config) GetAbstract() bool

func (*Config) GetAcceptProxyProtocol Uses

func (x *Config) GetAcceptProxyProtocol() bool

func (*Config) GetPadding Uses

func (x *Config) GetPadding() bool

func (*Config) GetPath Uses

func (x *Config) GetPath() string

func (*Config) GetUnixAddr Uses

func (c *Config) GetUnixAddr() (*net.UnixAddr, error)

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

func (x *Config) ProtoReflect() protoreflect.Message

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

type Listener Uses

type Listener struct {
    // contains filtered or unexported fields
}

func (*Listener) Addr Uses

func (ln *Listener) Addr() net.Addr

func (*Listener) Close Uses

func (ln *Listener) Close() error

Package domainsocket imports 19 packages (graph). Updated 2020-12-27. Refresh now. Tools for package owners.