github.com/eagleql/xray-core@v1.4.4/common/net/system.go (about) 1 package net 2 3 import "net" 4 5 // DialTCP is an alias of net.DialTCP. 6 var DialTCP = net.DialTCP 7 var DialUDP = net.DialUDP 8 var DialUnix = net.DialUnix 9 var Dial = net.Dial 10 11 type ListenConfig = net.ListenConfig 12 13 var Listen = net.Listen 14 var ListenTCP = net.ListenTCP 15 var ListenUDP = net.ListenUDP 16 var ListenUnix = net.ListenUnix 17 18 var LookupIP = net.LookupIP 19 20 var FileConn = net.FileConn 21 22 // ParseIP is an alias of net.ParseIP 23 var ParseIP = net.ParseIP 24 25 var SplitHostPort = net.SplitHostPort 26 27 var CIDRMask = net.CIDRMask 28 29 type Addr = net.Addr 30 type Conn = net.Conn 31 type PacketConn = net.PacketConn 32 33 type TCPAddr = net.TCPAddr 34 type TCPConn = net.TCPConn 35 36 type UDPAddr = net.UDPAddr 37 type UDPConn = net.UDPConn 38 39 type UnixAddr = net.UnixAddr 40 type UnixConn = net.UnixConn 41 42 // IP is an alias for net.IP. 43 type IP = net.IP 44 type IPMask = net.IPMask 45 type IPNet = net.IPNet 46 47 const IPv4len = net.IPv4len 48 const IPv6len = net.IPv6len 49 50 type Error = net.Error 51 type AddrError = net.AddrError 52 53 type Dialer = net.Dialer 54 type Listener = net.Listener 55 type TCPListener = net.TCPListener 56 type UnixListener = net.UnixListener 57 58 var ResolveUnixAddr = net.ResolveUnixAddr 59 var ResolveUDPAddr = net.ResolveUDPAddr 60 61 type Resolver = net.Resolver