github.com/v2fly/v2ray-core/v4@v4.45.2/common/net/system.go (about)

     1  package net
     2  
     3  import "net"
     4  
     5  const (
     6  	IPv4len = net.IPv4len
     7  	IPv6len = net.IPv6len
     8  )
     9  
    10  var (
    11  	CIDRMask        = net.CIDRMask
    12  	Dial            = net.Dial
    13  	DialTCP         = net.DialTCP
    14  	DialUDP         = net.DialUDP
    15  	DialUnix        = net.DialUnix
    16  	FileConn        = net.FileConn
    17  	Listen          = net.Listen
    18  	ListenTCP       = net.ListenTCP
    19  	ListenUDP       = net.ListenUDP
    20  	ListenUnix      = net.ListenUnix
    21  	LookupIP        = net.LookupIP
    22  	ParseIP         = net.ParseIP
    23  	ResolveUDPAddr  = net.ResolveUDPAddr
    24  	ResolveUnixAddr = net.ResolveUnixAddr
    25  	SplitHostPort   = net.SplitHostPort
    26  )
    27  
    28  type (
    29  	Addr         = net.Addr
    30  	AddrError    = net.AddrError
    31  	Conn         = net.Conn
    32  	Dialer       = net.Dialer
    33  	Error        = net.Error
    34  	IP           = net.IP
    35  	IPMask       = net.IPMask
    36  	IPNet        = net.IPNet
    37  	ListenConfig = net.ListenConfig
    38  	Listener     = net.Listener
    39  	PacketConn   = net.PacketConn
    40  	Resolver     = net.Resolver
    41  	TCPAddr      = net.TCPAddr
    42  	TCPConn      = net.TCPConn
    43  	TCPListener  = net.TCPListener
    44  	UDPAddr      = net.UDPAddr
    45  	UDPConn      = net.UDPConn
    46  	UnixAddr     = net.UnixAddr
    47  	UnixConn     = net.UnixConn
    48  	UnixListener = net.UnixListener
    49  )