github.com/imannamdari/v2ray-core/v5@v5.0.5/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  	ParseCIDR       = net.ParseCIDR
    23  	ParseIP         = net.ParseIP
    24  	ResolveUDPAddr  = net.ResolveUDPAddr
    25  	ResolveUnixAddr = net.ResolveUnixAddr
    26  	SplitHostPort   = net.SplitHostPort
    27  )
    28  
    29  type (
    30  	Addr         = net.Addr
    31  	AddrError    = net.AddrError
    32  	Conn         = net.Conn
    33  	Dialer       = net.Dialer
    34  	Error        = net.Error
    35  	IP           = net.IP
    36  	IPMask       = net.IPMask
    37  	IPNet        = net.IPNet
    38  	ListenConfig = net.ListenConfig
    39  	Listener     = net.Listener
    40  	PacketConn   = net.PacketConn
    41  	Resolver     = net.Resolver
    42  	TCPAddr      = net.TCPAddr
    43  	TCPConn      = net.TCPConn
    44  	TCPListener  = net.TCPListener
    45  	UDPAddr      = net.UDPAddr
    46  	UDPConn      = net.UDPConn
    47  	UnixAddr     = net.UnixAddr
    48  	UnixConn     = net.UnixConn
    49  	UnixListener = net.UnixListener
    50  )