mirror of
https://github.com/XTLS/Xray-core.git
synced 2024-11-22 20:59:19 +02:00
62 lines
1.2 KiB
Go
62 lines
1.2 KiB
Go
package net
|
|
|
|
import "net"
|
|
|
|
// DialTCP is an alias of net.DialTCP.
|
|
var DialTCP = net.DialTCP
|
|
var DialUDP = net.DialUDP
|
|
var DialUnix = net.DialUnix
|
|
var Dial = net.Dial
|
|
|
|
type ListenConfig = net.ListenConfig
|
|
|
|
var Listen = net.Listen
|
|
var ListenTCP = net.ListenTCP
|
|
var ListenUDP = net.ListenUDP
|
|
var ListenUnix = net.ListenUnix
|
|
|
|
var LookupIP = net.LookupIP
|
|
|
|
var FileConn = net.FileConn
|
|
|
|
// ParseIP is an alias of net.ParseIP
|
|
var ParseIP = net.ParseIP
|
|
|
|
var SplitHostPort = net.SplitHostPort
|
|
|
|
var CIDRMask = net.CIDRMask
|
|
|
|
type Addr = net.Addr
|
|
type Conn = net.Conn
|
|
type PacketConn = net.PacketConn
|
|
|
|
type TCPAddr = net.TCPAddr
|
|
type TCPConn = net.TCPConn
|
|
|
|
type UDPAddr = net.UDPAddr
|
|
type UDPConn = net.UDPConn
|
|
|
|
type UnixAddr = net.UnixAddr
|
|
type UnixConn = net.UnixConn
|
|
|
|
// IP is an alias for net.IP.
|
|
type IP = net.IP
|
|
type IPMask = net.IPMask
|
|
type IPNet = net.IPNet
|
|
|
|
const IPv4len = net.IPv4len
|
|
const IPv6len = net.IPv6len
|
|
|
|
type Error = net.Error
|
|
type AddrError = net.AddrError
|
|
|
|
type Dialer = net.Dialer
|
|
type Listener = net.Listener
|
|
type TCPListener = net.TCPListener
|
|
type UnixListener = net.UnixListener
|
|
|
|
var ResolveUnixAddr = net.ResolveUnixAddr
|
|
var ResolveUDPAddr = net.ResolveUDPAddr
|
|
|
|
type Resolver = net.Resolver
|