Versions in this module Expand all Collapse all v4 v4.88.0 Jul 26, 2021 Changes in this version + const AddressFamilyDomain + const AddressFamilyIPv4 + const AddressFamilyIPv6 + const IPv4len + const IPv6len + var AnyIP = IPAddress([]byte{ ... }) + var AnyIPv6 = IPAddress([]byte{ ... }) + var CIDRMask = net.CIDRMask + var Dial = net.Dial + var DialTCP = net.DialTCP + var DialUDP = net.DialUDP + var DialUnix = net.DialUnix + var FileConn = net.FileConn + var File_common_net_address_proto protoreflect.FileDescriptor + var File_common_net_destination_proto protoreflect.FileDescriptor + var File_common_net_network_proto protoreflect.FileDescriptor + var File_common_net_port_proto protoreflect.FileDescriptor + var Listen = net.Listen + var ListenTCP = net.ListenTCP + var ListenUDP = net.ListenUDP + var ListenUnix = net.ListenUnix + var LocalHostDomain = DomainAddress("localhost") + var LocalHostIP = IPAddress([]byte{ ... }) + var LocalHostIPv6 = IPAddress([]byte{ ... }) + var LookupIP = net.LookupIP + var Network_name = map[int32]string + var Network_value = map[string]int32 + var ParseIP = net.ParseIP + var ResolveUDPAddr = net.ResolveUDPAddr + var ResolveUnixAddr = net.ResolveUnixAddr + var SplitHostPort = net.SplitHostPort + func HasNetwork(list []Network, network Network) bool + func NewConnection(opts ...ConnectionOption) net.Conn + type Addr = net.Addr + type AddrError = net.AddrError + type Address interface + Domain func() string + Family func() AddressFamily + IP func() net.IP + String func() string + func DomainAddress(domain string) Address + func IPAddress(ip []byte) Address + func ParseAddress(addr string) Address + type AddressFamily byte + func (af AddressFamily) IsDomain() bool + func (af AddressFamily) IsIP() bool + func (af AddressFamily) IsIPv4() bool + func (af AddressFamily) IsIPv6() bool + type Conn = net.Conn + type ConnectionOption func(*connection) + func ConnectionInput(writer io.Writer) ConnectionOption + func ConnectionInputMulti(writer buf.Writer) ConnectionOption + func ConnectionLocalAddr(a net.Addr) ConnectionOption + func ConnectionOnClose(n io.Closer) ConnectionOption + func ConnectionOutput(reader io.Reader) ConnectionOption + func ConnectionOutputMulti(reader buf.Reader) ConnectionOption + func ConnectionOutputMultiUDP(reader buf.Reader) ConnectionOption + func ConnectionRemoteAddr(a net.Addr) ConnectionOption + type Destination struct + Address Address + Network Network + Port Port + func DestinationFromAddr(addr net.Addr) Destination + func ParseDestination(dest string) (Destination, error) + func TCPDestination(address Address, port Port) Destination + func UDPDestination(address Address, port Port) Destination + func UnixDestination(address Address) Destination + func (d Destination) IsValid() bool + func (d Destination) NetAddr() string + func (d Destination) String() string + type Dialer = net.Dialer + type Endpoint struct + Address *IPOrDomain + Network Network + Port uint32 + func (*Endpoint) Descriptor() ([]byte, []int) + func (*Endpoint) ProtoMessage() + func (p *Endpoint) AsDestination() Destination + func (x *Endpoint) GetAddress() *IPOrDomain + func (x *Endpoint) GetNetwork() Network + func (x *Endpoint) GetPort() uint32 + func (x *Endpoint) ProtoReflect() protoreflect.Message + func (x *Endpoint) Reset() + func (x *Endpoint) String() string + type Error = net.Error + type IP = net.IP + type IPMask = net.IPMask + type IPNet = net.IPNet + type IPOrDomain struct + Address isIPOrDomain_Address + func NewIPOrDomain(addr Address) *IPOrDomain + func (*IPOrDomain) Descriptor() ([]byte, []int) + func (*IPOrDomain) ProtoMessage() + func (d *IPOrDomain) AsAddress() Address + func (m *IPOrDomain) GetAddress() isIPOrDomain_Address + func (x *IPOrDomain) GetDomain() string + func (x *IPOrDomain) GetIp() []byte + func (x *IPOrDomain) ProtoReflect() protoreflect.Message + func (x *IPOrDomain) Reset() + func (x *IPOrDomain) String() string + type IPOrDomain_Domain struct + Domain string + type IPOrDomain_Ip struct + Ip []byte + type ListenConfig = net.ListenConfig + type Listener = net.Listener + type MemoryPortList []MemoryPortRange + func PortListFromProto(l *PortList) MemoryPortList + func (mpl MemoryPortList) Contains(port Port) bool + type MemoryPortRange struct + From Port + To Port + func (r MemoryPortRange) Contains(port Port) bool + type Network int32 + const Network_RawTCP + const Network_TCP + const Network_UDP + const Network_UNIX + const Network_Unknown + func (Network) Descriptor() protoreflect.EnumDescriptor + func (Network) EnumDescriptor() ([]byte, []int) + func (Network) Type() protoreflect.EnumType + func (n Network) SystemString() string + func (x Network) Enum() *Network + func (x Network) Number() protoreflect.EnumNumber + func (x Network) String() string + type NetworkList struct + Network []Network + func (*NetworkList) Descriptor() ([]byte, []int) + func (*NetworkList) ProtoMessage() + func (x *NetworkList) GetNetwork() []Network + func (x *NetworkList) ProtoReflect() protoreflect.Message + func (x *NetworkList) Reset() + func (x *NetworkList) String() string + type PacketConn = net.PacketConn + type Port uint16 + func PortFromBytes(port []byte) Port + func PortFromInt(val uint32) (Port, error) + func PortFromString(s string) (Port, error) + func (p Port) String() string + func (p Port) Value() uint16 + type PortList struct + Range []*PortRange + func (*PortList) Descriptor() ([]byte, []int) + func (*PortList) ProtoMessage() + func (x *PortList) GetRange() []*PortRange + func (x *PortList) ProtoReflect() protoreflect.Message + func (x *PortList) Reset() + func (x *PortList) String() string + type PortRange struct + From uint32 + To uint32 + func SinglePortRange(p Port) *PortRange + func (*PortRange) Descriptor() ([]byte, []int) + func (*PortRange) ProtoMessage() + func (p *PortRange) Contains(port Port) bool + func (p *PortRange) FromPort() Port + func (p *PortRange) ToPort() Port + func (x *PortRange) GetFrom() uint32 + func (x *PortRange) GetTo() uint32 + func (x *PortRange) ProtoReflect() protoreflect.Message + func (x *PortRange) Reset() + func (x *PortRange) String() string + type Resolver = net.Resolver + type TCPAddr = net.TCPAddr + type TCPConn = net.TCPConn + type TCPListener = net.TCPListener + type UDPAddr = net.UDPAddr + type UDPConn = net.UDPConn + type UnixAddr = net.UnixAddr + type UnixConn = net.UnixConn + type UnixListener = net.UnixListener Other modules containing this package github.com/maintell/v2ray-core