2017-08-29 10:56:57 +00:00
|
|
|
package net
|
|
|
|
|
|
|
|
import "net"
|
|
|
|
|
2018-11-03 11:36:29 +00:00
|
|
|
// DialTCP is an alias of net.DialTCP.
|
2017-08-29 10:56:57 +00:00
|
|
|
var DialTCP = net.DialTCP
|
|
|
|
var DialUDP = net.DialUDP
|
2017-08-29 12:32:54 +00:00
|
|
|
var DialUnix = net.DialUnix
|
2018-08-08 08:33:40 +00:00
|
|
|
var Dial = net.Dial
|
2017-08-29 10:56:57 +00:00
|
|
|
|
2018-09-15 19:35:32 +00:00
|
|
|
type ListenConfig = net.ListenConfig
|
|
|
|
|
2017-08-29 10:56:57 +00:00
|
|
|
var Listen = net.Listen
|
|
|
|
var ListenTCP = net.ListenTCP
|
|
|
|
var ListenUDP = net.ListenUDP
|
2018-04-09 15:09:24 +00:00
|
|
|
var ListenUnix = net.ListenUnix
|
2017-08-29 10:56:57 +00:00
|
|
|
|
2018-01-10 12:30:57 +00:00
|
|
|
var LookupIP = net.LookupIP
|
|
|
|
|
2017-08-29 12:32:54 +00:00
|
|
|
var FileConn = net.FileConn
|
|
|
|
|
2018-11-03 11:36:29 +00:00
|
|
|
// ParseIP is an alias of net.ParseIP
|
2017-08-29 11:51:09 +00:00
|
|
|
var ParseIP = net.ParseIP
|
2017-08-29 10:56:57 +00:00
|
|
|
|
|
|
|
var SplitHostPort = net.SplitHostPort
|
|
|
|
|
2017-08-29 12:32:54 +00:00
|
|
|
var CIDRMask = net.CIDRMask
|
|
|
|
|
2017-08-29 10:56:57 +00:00
|
|
|
type Addr = net.Addr
|
|
|
|
type Conn = net.Conn
|
2018-09-15 19:35:32 +00:00
|
|
|
type PacketConn = net.PacketConn
|
2017-08-29 10:56:57 +00:00
|
|
|
|
|
|
|
type TCPAddr = net.TCPAddr
|
|
|
|
type TCPConn = net.TCPConn
|
|
|
|
|
|
|
|
type UDPAddr = net.UDPAddr
|
|
|
|
type UDPConn = net.UDPConn
|
|
|
|
|
2017-08-29 12:32:54 +00:00
|
|
|
type UnixAddr = net.UnixAddr
|
2017-08-29 10:56:57 +00:00
|
|
|
type UnixConn = net.UnixConn
|
|
|
|
|
2017-10-22 20:45:05 +00:00
|
|
|
// IP is an alias for net.IP.
|
2017-08-29 10:56:57 +00:00
|
|
|
type IP = net.IP
|
2017-08-29 11:51:09 +00:00
|
|
|
type IPMask = net.IPMask
|
|
|
|
type IPNet = net.IPNet
|
|
|
|
|
|
|
|
const IPv4len = net.IPv4len
|
|
|
|
const IPv6len = net.IPv6len
|
2017-08-29 10:56:57 +00:00
|
|
|
|
|
|
|
type Error = net.Error
|
|
|
|
type AddrError = net.AddrError
|
|
|
|
|
|
|
|
type Dialer = net.Dialer
|
|
|
|
type Listener = net.Listener
|
|
|
|
type TCPListener = net.TCPListener
|
2017-08-29 11:12:50 +00:00
|
|
|
type UnixListener = net.UnixListener
|
2018-04-09 15:09:24 +00:00
|
|
|
|
|
|
|
var ResolveUnixAddr = net.ResolveUnixAddr
|
2018-11-21 15:47:06 +00:00
|
|
|
var ResolveUDPAddr = net.ResolveUDPAddr
|
2018-06-26 13:16:45 +00:00
|
|
|
|
|
|
|
type Resolver = net.Resolver
|