1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 18:17:52 -05:00
v2fly/common/net/system.go

51 lines
953 B
Go
Raw Normal View History

package net
import "net"
2017-11-06 16:42:16 -05:00
// DialTCP is an injectable function. Default to net.DialTCP
var DialTCP = net.DialTCP
var DialUDP = net.DialUDP
2017-08-29 08:32:54 -04:00
var DialUnix = net.DialUnix
var Listen = net.Listen
var ListenTCP = net.ListenTCP
var ListenUDP = net.ListenUDP
2018-01-10 07:30:57 -05:00
var LookupIP = net.LookupIP
2017-08-29 08:32:54 -04:00
var FileConn = net.FileConn
2017-08-29 07:51:09 -04:00
var ParseIP = net.ParseIP
var SplitHostPort = net.SplitHostPort
2017-08-29 08:32:54 -04:00
var CIDRMask = net.CIDRMask
type Addr = net.Addr
type Conn = net.Conn
type TCPAddr = net.TCPAddr
type TCPConn = net.TCPConn
type UDPAddr = net.UDPAddr
type UDPConn = net.UDPConn
2017-08-29 08:32:54 -04:00
type UnixAddr = net.UnixAddr
type UnixConn = net.UnixConn
2017-10-22 16:45:05 -04:00
// IP is an alias for net.IP.
type IP = net.IP
2017-08-29 07:51:09 -04:00
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
2017-08-29 07:12:50 -04:00
type UnixListener = net.UnixListener