Namespace: go.std.net
v1.0Contents
Summary
Provides a low-level interface to the net package.
Package net provides a portable interface for network I/O, including
TCP/IP, UDP, domain name resolution, and Unix domain sockets.
Although the package provides access to low-level networking
primitives, most clients will need only the basic interface provided
by the Dial, Listen, and Accept functions and the associated
Conn and Listener interfaces. The crypto/tls package uses
the same interfaces and similar Dial and Listen functions.
The Dial function connects to a server:
conn, err := net.Dial("tcp", "golang.org:80")
if err != nil {
// handle error
}
fmt.Fprintf(conn, "GET / HTTP/1.0\r\n\r\n")
status, err := bufio.NewReader(conn).ReadString('\n')
// ...
The Listen function creates servers:
ln, err := net.Listen("tcp", ":8080")
if err != nil {
// handle error
}
for {
conn, err := ln.Accept()
if err != nil {
// handle error
}
go handleConnection(conn)
}
Name Resolution
The method for resolving domain names, whether indirectly with functions like Dial
or directly with functions like LookupHost and LookupAddr, varies by operating system.
On Unix systems, the resolver has two options for resolving names.
It can use a pure Go resolver that sends DNS requests directly to the servers
listed in /etc/resolv.conf, or it can use a cgo-based resolver that calls C
library routines such as getaddrinfo and getnameinfo.
By default the pure Go resolver is used, because a blocked DNS request consumes
only a goroutine, while a blocked C call consumes an operating system thread.
When cgo is available, the cgo-based resolver is used instead under a variety of
conditions: on systems that do not let programs make direct DNS requests (OS X),
when the LOCALDOMAIN environment variable is present (even if empty),
when the RES_OPTIONS or HOSTALIASES environment variable is non-empty,
when the ASR_CONFIG environment variable is non-empty (OpenBSD only),
when /etc/resolv.conf or /etc/nsswitch.conf specify the use of features that the
Go resolver does not implement, and when the name being looked up ends in .local
or is an mDNS name.
The resolver decision can be overridden by setting the netdns value of the
GODEBUG environment variable (see package runtime) to go or cgo, as in:
export GODEBUG=netdns=go # force pure Go resolver
export GODEBUG=netdns=cgo # force cgo resolver
The decision can also be forced while building the Go source tree
by setting the netgo or netcgo build tag.
A numeric netdns setting, as in GODEBUG=netdns=1, causes the resolver
to print debugging information about its decisions.
To force a particular resolver while also printing debugging information,
join the two settings by a plus sign, as in GODEBUG=netdns=go+1.
On Plan 9, the resolver always accesses /net/cs and /net/dns.
On Windows, the resolver always uses C library functions, such as GetAddrInfo and DnsQuery.
Index
- *AddrError
- *Buffers
- *DNSConfigError
- *DNSError
- *Dialer
- *Flags
- *HardwareAddr
- *IP
- *IPAddr
- *IPConn
- *IPMask
- *IPNet
- *Interface
- *InvalidAddrError
- *ListenConfig
- *MX
- *NS
- *OpError
- *ParseError
- *Resolver
- *SRV
- *TCPAddr
- *TCPConn
- *TCPListener
- *UDPAddr
- *UDPConn
- *UnixAddr
- *UnixConn
- *UnixListener
- *UnknownNetworkError
- Addr
- AddrError
- Buffers
- CIDRMask
- Conn
- DNSConfigError
- DNSError
- DefaultResolver
- Dial
- DialIP
- DialTCP
- DialTimeout
- DialUDP
- DialUnix
- Dialer
- ErrClosed
- ErrWriteToConnected
- Error
- FileConn
- FileListener
- FilePacketConn
- FlagBroadcast
- FlagLoopback
- FlagMulticast
- FlagPointToPoint
- FlagUp
- Flags
- HardwareAddr
- IP
- IPAddr
- IPConn
- IPMask
- IPNet
- IPv4
- IPv4Mask
- IPv4allrouter
- IPv4allsys
- IPv4bcast
- IPv4len
- IPv4zero
- IPv6interfacelocalallnodes
- IPv6len
- IPv6linklocalallnodes
- IPv6linklocalallrouters
- IPv6loopback
- IPv6unspecified
- IPv6zero
- Interface
- InterfaceAddrs
- InterfaceByIndex
- InterfaceByName
- Interfaces
- InvalidAddrError
- JoinHostPort
- Listen
- ListenConfig
- ListenIP
- ListenMulticastUDP
- ListenPacket
- ListenTCP
- ListenUDP
- ListenUnix
- ListenUnixgram
- Listener
- LookupAddr
- LookupCNAME
- LookupHost
- LookupIP
- LookupMX
- LookupNS
- LookupPort
- LookupSRV
- LookupTXT
- MX
- NS
- OpError
- PacketConn
- ParseCIDR
- ParseError
- ParseIP
- ParseMAC
- Pipe
- ResolveIPAddr
- ResolveTCPAddr
- ResolveUDPAddr
- ResolveUnixAddr
- Resolver
- SRV
- SplitHostPort
- TCPAddr
- TCPAddrFromAddrPort
- TCPConn
- TCPListener
- UDPAddr
- UDPAddrFromAddrPort
- UDPConn
- UnixAddr
- UnixConn
- UnixListener
- UnknownNetworkError
- arrayOfAddr
- arrayOfAddrError
- arrayOfBuffers
- arrayOfConn
- arrayOfDNSConfigError
- arrayOfDNSError
- arrayOfDialer
- arrayOfError
- arrayOfFlags
- arrayOfHardwareAddr
- arrayOfIP
- arrayOfIPAddr
- arrayOfIPConn
- arrayOfIPMask
- arrayOfIPNet
- arrayOfInterface
- arrayOfInvalidAddrError
- arrayOfListenConfig
- arrayOfListener
- arrayOfMX
- arrayOfNS
- arrayOfOpError
- arrayOfPacketConn
- arrayOfParseError
- arrayOfResolver
- arrayOfSRV
- arrayOfTCPAddr
- arrayOfTCPConn
- arrayOfTCPListener
- arrayOfUDPAddr
- arrayOfUDPConn
- arrayOfUnixAddr
- arrayOfUnixConn
- arrayOfUnixListener
- arrayOfUnknownNetworkError
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
IPv4len
Int v1.0IP address lengths (bytes).
-
IPv6len
Int v1.0IP address lengths (bytes).
Variables
-
DefaultResolver
Var v1.0DefaultResolver is the resolver used by the package-level Lookup
functions and by Dialers without a specified Resolver.
-
ErrClosed
Var v1.0ErrClosed is the error returned by an I/O call on a network
connection that has already been closed, or that is closed by
another goroutine before the I/O is completed. This may be wrapped
in another error, and should normally be tested using
errors.Is(err, net.ErrClosed).
-
ErrWriteToConnected
Var v1.0Various errors contained in OpError.
-
FlagBroadcast
GoObject v1.0interface supports broadcast access capability
-
FlagLoopback
GoObject v1.0interface is a loopback interface
-
FlagMulticast
GoObject v1.0interface supports multicast access capability
-
FlagPointToPoint
GoObject v1.0interface belongs to a point-to-point link
-
FlagUp
GoObject v1.0interface is up
-
IPv4allrouter
Var v1.0all routers
-
IPv4allsys
Var v1.0all systems
-
IPv4bcast
Var v1.0limited broadcast
-
IPv4zero
Var v1.0all zeros
-
IPv6interfacelocalallnodes
Var v1.0Well-known IPv6 addresses
-
IPv6linklocalallnodes
Var v1.0Well-known IPv6 addresses
-
IPv6linklocalallrouters
Var v1.0Well-known IPv6 addresses
-
IPv6loopback
Var v1.0Well-known IPv6 addresses
-
IPv6unspecified
Var v1.0Well-known IPv6 addresses
-
IPv6zero
Var v1.0Well-known IPv6 addresses
Functions, Macros, and Special Forms
-
CIDRMask
Function v1.0(CIDRMask ones bits)
CIDRMask returns an IPMask consisting of 'ones' 1 bits
followed by 0s up to a total length of 'bits' bits.
For a mask of this form, CIDRMask is the inverse of IPMask.Size.
Go input arguments: (ones int, bits int)
Go returns: IPMask
Joker input arguments: [^Int ones, ^Int bits]
Joker returns: ^IPMask -
Dial
Function v1.0(Dial network address)
Dial connects to the address on the named network.
Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only),
"udp", "udp4" (IPv4-only), "udp6" (IPv6-only), "ip", "ip4"
(IPv4-only), "ip6" (IPv6-only), "unix", "unixgram" and
"unixpacket".
For TCP and UDP networks, the address has the form "host:port".
The host must be a literal IP address, or a host name that can be
resolved to IP addresses.
The port must be a literal port number or a service name.
If the host is a literal IPv6 address it must be enclosed in square
brackets, as in "[2001:db8::1]:80" or "[fe80::1%zone]:80".
The zone specifies the scope of the literal IPv6 address as defined
in RFC 4007.
The functions JoinHostPort and SplitHostPort manipulate a pair of
host and port in this form.
When using TCP, and the host resolves to multiple IP addresses,
Dial will try each IP address in order until one succeeds.
Examples:
Dial("tcp", "golang.org:http")
Dial("tcp", "192.0.2.1:http")
Dial("tcp", "198.51.100.1:80")
Dial("udp", "[2001:db8::1]:domain")
Dial("udp", "[fe80::1%lo0]:53")
Dial("tcp", ":80")
For IP networks, the network must be "ip", "ip4" or "ip6" followed
by a colon and a literal protocol number or a protocol name, and
the address has the form "host". The host must be a literal IP
address or a literal IPv6 address with zone.
It depends on each operating system how the operating system
behaves with a non-well known protocol number such as "0" or "255".
Examples:
Dial("ip4:1", "192.0.2.1")
Dial("ip6:ipv6-icmp", "2001:db8::1")
Dial("ip6:58", "fe80::1%lo0")
For TCP, UDP and IP networks, if the host is empty or a literal
unspecified IP address, as in ":80", "0.0.0.0:80" or "[::]:80" for
TCP and UDP, "", "0.0.0.0" or "::" for IP, the local system is
assumed.
For Unix networks, the address must be a file system path.
Go input arguments: (network string, address string)
Go returns: (Conn, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^Conn, ^Error] -
DialIP
Function v1.0(DialIP network laddr raddr)
DialIP acts like Dial for IP networks.
The network must be an IP network name; see func Dial for details.
If laddr is nil, a local address is automatically chosen.
If the IP field of raddr is nil or an unspecified IP address, the
local system is assumed.
Go input arguments: (network string, laddr *IPAddr, raddr *IPAddr)
Go returns: (*IPConn, error)
Joker input arguments: [^String network, ^*IPAddr laddr, ^*IPAddr raddr]
Joker returns: [^*IPConn, ^Error] -
DialTCP
Function v1.0(DialTCP network laddr raddr)
DialTCP acts like Dial for TCP networks.
The network must be a TCP network name; see func Dial for details.
If laddr is nil, a local address is automatically chosen.
If the IP field of raddr is nil or an unspecified IP address, the
local system is assumed.
Go input arguments: (network string, laddr *TCPAddr, raddr *TCPAddr)
Go returns: (*TCPConn, error)
Joker input arguments: [^String network, ^*TCPAddr laddr, ^*TCPAddr raddr]
Joker returns: [^*TCPConn, ^Error] -
DialTimeout
Function v1.0(DialTimeout network address timeout)
DialTimeout acts like Dial but takes a timeout.
The timeout includes name resolution, if required.
When using TCP, and the host in the address parameter resolves to
multiple IP addresses, the timeout is spread over each consecutive
dial, such that each is given an appropriate fraction of the time
to connect.
See func Dial for a description of the network and address
parameters.
Go input arguments: (network string, address string, timeout time.Duration)
Go returns: (Conn, error)
Joker input arguments: [^String network, ^String address, ^go.std.time/Duration timeout]
Joker returns: [^Conn, ^Error] -
DialUDP
Function v1.0(DialUDP network laddr raddr)
DialUDP acts like Dial for UDP networks.
The network must be a UDP network name; see func Dial for details.
If laddr is nil, a local address is automatically chosen.
If the IP field of raddr is nil or an unspecified IP address, the
local system is assumed.
Go input arguments: (network string, laddr *UDPAddr, raddr *UDPAddr)
Go returns: (*UDPConn, error)
Joker input arguments: [^String network, ^*UDPAddr laddr, ^*UDPAddr raddr]
Joker returns: [^*UDPConn, ^Error] -
DialUnix
Function v1.0(DialUnix network laddr raddr)
DialUnix acts like Dial for Unix networks.
The network must be a Unix network name; see func Dial for details.
If laddr is non-nil, it is used as the local address for the
connection.
Go input arguments: (network string, laddr *UnixAddr, raddr *UnixAddr)
Go returns: (*UnixConn, error)
Joker input arguments: [^String network, ^*UnixAddr laddr, ^*UnixAddr raddr]
Joker returns: [^*UnixConn, ^Error] -
FileConn
Function v1.0(FileConn f)
FileConn returns a copy of the network connection corresponding to
the open file f.
It is the caller's responsibility to close f when finished.
Closing c does not affect f, and closing f does not affect c.
Go input arguments: (f *os.File)
Go returns: (c Conn, err error)
Joker input arguments: [^go.std.os/*File f]
Joker returns: [^Conn c, ^Error err] -
FileListener
Function v1.0(FileListener f)
FileListener returns a copy of the network listener corresponding
to the open file f.
It is the caller's responsibility to close ln when finished.
Closing ln does not affect f, and closing f does not affect ln.
Go input arguments: (f *os.File)
Go returns: (ln Listener, err error)
Joker input arguments: [^go.std.os/*File f]
Joker returns: [^Listener ln, ^Error err] -
FilePacketConn
Function v1.0(FilePacketConn f)
FilePacketConn returns a copy of the packet network connection
corresponding to the open file f.
It is the caller's responsibility to close f when finished.
Closing c does not affect f, and closing f does not affect c.
Go input arguments: (f *os.File)
Go returns: (c PacketConn, err error)
Joker input arguments: [^go.std.os/*File f]
Joker returns: [^PacketConn c, ^Error err] -
IPv4
Function v1.0(IPv4 a b c d)
IPv4 returns the IP address (in 16-byte form) of the
IPv4 address a.b.c.d.
Go input arguments: (a byte, b byte, c byte, d byte)
Go returns: IP
Joker input arguments: [^Byte a, ^Byte b, ^Byte c, ^Byte d]
Joker returns: ^IP -
IPv4Mask
Function v1.0(IPv4Mask a b c d)
IPv4Mask returns the IP mask (in 4-byte form) of the
IPv4 mask a.b.c.d.
Go input arguments: (a byte, b byte, c byte, d byte)
Go returns: IPMask
Joker input arguments: [^Byte a, ^Byte b, ^Byte c, ^Byte d]
Joker returns: ^IPMask -
InterfaceAddrs
Function v1.0(InterfaceAddrs)
InterfaceAddrs returns a list of the system's unicast interface
addresses.
The returned list does not identify the associated interface; use
Interfaces and Interface.Addrs for more detail.
Go returns: ([]Addr, error)
Joker input arguments: []
Joker returns: [^arrayOfAddr, ^Error] -
InterfaceByIndex
Function v1.0(InterfaceByIndex index)
InterfaceByIndex returns the interface specified by index.
On Solaris, it returns one of the logical network interfaces
sharing the logical data link; for more precision use
InterfaceByName.
Go input arguments: (index int)
Go returns: (*Interface, error)
Joker input arguments: [^Int index]
Joker returns: [^*Interface, ^Error] -
InterfaceByName
Function v1.0(InterfaceByName name)
InterfaceByName returns the interface specified by name.
Go input arguments: (name string)
Go returns: (*Interface, error)
Joker input arguments: [^String name]
Joker returns: [^*Interface, ^Error] -
Interfaces
Function v1.0(Interfaces)
Interfaces returns a list of the system's network interfaces.
Go returns: ([]Interface, error)
Joker input arguments: []
Joker returns: [^arrayOfInterface, ^Error] -
JoinHostPort
Function v1.0(JoinHostPort host port)
JoinHostPort combines host and port into a network address of the
form "host:port". If host contains a colon, as found in literal
IPv6 addresses, then JoinHostPort returns "[host]:port".
See func Dial for a description of the host and port parameters.
Go input arguments: (host string, port string)
Go returns: string
Joker input arguments: [^String host, ^String port]
Joker returns: ^String -
Listen
Function v1.0(Listen network address)
Listen announces on the local network address.
The network must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket".
For TCP networks, if the host in the address parameter is empty or
a literal unspecified IP address, Listen listens on all available
unicast and anycast IP addresses of the local system.
To only use IPv4, use network "tcp4".
The address can use a host name, but this is not recommended,
because it will create a listener for at most one of the host's IP
addresses.
If the port in the address parameter is empty or "0", as in
"127.0.0.1:" or "[::1]:0", a port number is automatically chosen.
The Addr method of Listener can be used to discover the chosen
port.
See func Dial for a description of the network and address
parameters.
Listen uses context.Background internally; to specify the context, use
ListenConfig.Listen.
Go input arguments: (network string, address string)
Go returns: (Listener, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^Listener, ^Error] -
ListenIP
Function v1.0(ListenIP network laddr)
ListenIP acts like ListenPacket for IP networks.
The network must be an IP network name; see func Dial for details.
If the IP field of laddr is nil or an unspecified IP address,
ListenIP listens on all available IP addresses of the local system
except multicast IP addresses.
Go input arguments: (network string, laddr *IPAddr)
Go returns: (*IPConn, error)
Joker input arguments: [^String network, ^*IPAddr laddr]
Joker returns: [^*IPConn, ^Error] -
ListenMulticastUDP
Function v1.0(ListenMulticastUDP network ifi gaddr)
ListenMulticastUDP acts like ListenPacket for UDP networks but
takes a group address on a specific network interface.
The network must be a UDP network name; see func Dial for details.
ListenMulticastUDP listens on all available IP addresses of the
local system including the group, multicast IP address.
If ifi is nil, ListenMulticastUDP uses the system-assigned
multicast interface, although this is not recommended because the
assignment depends on platforms and sometimes it might require
routing configuration.
If the Port field of gaddr is 0, a port number is automatically
chosen.
ListenMulticastUDP is just for convenience of simple, small
applications. There are golang.org/x/net/ipv4 and
golang.org/x/net/ipv6 packages for general purpose uses.
Note that ListenMulticastUDP will set the IP_MULTICAST_LOOP socket option
to 0 under IPPROTO_IP, to disable loopback of multicast packets.
Go input arguments: (network string, ifi *Interface, gaddr *UDPAddr)
Go returns: (*UDPConn, error)
Joker input arguments: [^String network, ^*Interface ifi, ^*UDPAddr gaddr]
Joker returns: [^*UDPConn, ^Error] -
ListenPacket
Function v1.0(ListenPacket network address)
ListenPacket announces on the local network address.
The network must be "udp", "udp4", "udp6", "unixgram", or an IP
transport. The IP transports are "ip", "ip4", or "ip6" followed by
a colon and a literal protocol number or a protocol name, as in
"ip:1" or "ip:icmp".
For UDP and IP networks, if the host in the address parameter is
empty or a literal unspecified IP address, ListenPacket listens on
all available IP addresses of the local system except multicast IP
addresses.
To only use IPv4, use network "udp4" or "ip4:proto".
The address can use a host name, but this is not recommended,
because it will create a listener for at most one of the host's IP
addresses.
If the port in the address parameter is empty or "0", as in
"127.0.0.1:" or "[::1]:0", a port number is automatically chosen.
The LocalAddr method of PacketConn can be used to discover the
chosen port.
See func Dial for a description of the network and address
parameters.
ListenPacket uses context.Background internally; to specify the context, use
ListenConfig.ListenPacket.
Go input arguments: (network string, address string)
Go returns: (PacketConn, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^PacketConn, ^Error] -
ListenTCP
Function v1.0(ListenTCP network laddr)
ListenTCP acts like Listen for TCP networks.
The network must be a TCP network name; see func Dial for details.
If the IP field of laddr is nil or an unspecified IP address,
ListenTCP listens on all available unicast and anycast IP addresses
of the local system.
If the Port field of laddr is 0, a port number is automatically
chosen.
Go input arguments: (network string, laddr *TCPAddr)
Go returns: (*TCPListener, error)
Joker input arguments: [^String network, ^*TCPAddr laddr]
Joker returns: [^*TCPListener, ^Error] -
ListenUDP
Function v1.0(ListenUDP network laddr)
ListenUDP acts like ListenPacket for UDP networks.
The network must be a UDP network name; see func Dial for details.
If the IP field of laddr is nil or an unspecified IP address,
ListenUDP listens on all available IP addresses of the local system
except multicast IP addresses.
If the Port field of laddr is 0, a port number is automatically
chosen.
Go input arguments: (network string, laddr *UDPAddr)
Go returns: (*UDPConn, error)
Joker input arguments: [^String network, ^*UDPAddr laddr]
Joker returns: [^*UDPConn, ^Error] -
ListenUnix
Function v1.0(ListenUnix network laddr)
ListenUnix acts like Listen for Unix networks.
The network must be "unix" or "unixpacket".
Go input arguments: (network string, laddr *UnixAddr)
Go returns: (*UnixListener, error)
Joker input arguments: [^String network, ^*UnixAddr laddr]
Joker returns: [^*UnixListener, ^Error] -
ListenUnixgram
Function v1.0(ListenUnixgram network laddr)
ListenUnixgram acts like ListenPacket for Unix networks.
The network must be "unixgram".
Go input arguments: (network string, laddr *UnixAddr)
Go returns: (*UnixConn, error)
Joker input arguments: [^String network, ^*UnixAddr laddr]
Joker returns: [^*UnixConn, ^Error] -
LookupAddr
Function v1.0(LookupAddr addr)
LookupAddr performs a reverse lookup for the given address, returning a list
of names mapping to that address.
The returned names are validated to be properly formatted presentation-format
domain names. If the response contains invalid names, those records are filtered
out and an error will be returned alongside the remaining results, if any.
When using the host C library resolver, at most one result will be
returned. To bypass the host resolver, use a custom Resolver.
LookupAddr uses context.Background internally; to specify the context, use
Resolver.LookupAddr.
Go input arguments: (addr string)
Go returns: (names []string, err error)
Joker input arguments: [^String addr]
Joker returns: [^arrayOfString names, ^Error err] -
LookupCNAME
Function v1.0(LookupCNAME host)
LookupCNAME returns the canonical name for the given host.
Callers that do not care about the canonical name can call
LookupHost or LookupIP directly; both take care of resolving
the canonical name as part of the lookup.
A canonical name is the final name after following zero
or more CNAME records.
LookupCNAME does not return an error if host does not
contain DNS "CNAME" records, as long as host resolves to
address records.
The returned canonical name is validated to be a properly
formatted presentation-format domain name.
LookupCNAME uses context.Background internally; to specify the context, use
Resolver.LookupCNAME.
Go input arguments: (host string)
Go returns: (cname string, err error)
Joker input arguments: [^String host]
Joker returns: [^String cname, ^Error err] -
LookupHost
Function v1.0(LookupHost host)
LookupHost looks up the given host using the local resolver.
It returns a slice of that host's addresses.
LookupHost uses context.Background internally; to specify the context, use
Resolver.LookupHost.
Go input arguments: (host string)
Go returns: (addrs []string, err error)
Joker input arguments: [^String host]
Joker returns: [^arrayOfString addrs, ^Error err] -
LookupIP
Function v1.0(LookupIP host)
LookupIP looks up host using the local resolver.
It returns a slice of that host's IPv4 and IPv6 addresses.
Go input arguments: (host string)
Go returns: ([]IP, error)
Joker input arguments: [^String host]
Joker returns: [^arrayOfIP, ^Error] -
LookupMX
Function v1.0(LookupMX name)
LookupMX returns the DNS MX records for the given domain name sorted by preference.
The returned mail server names are validated to be properly
formatted presentation-format domain names. If the response contains
invalid names, those records are filtered out and an error
will be returned alongside the remaining results, if any.
LookupMX uses context.Background internally; to specify the context, use
Resolver.LookupMX.
Go input arguments: (name string)
Go returns: ([]*MX, error)
Joker input arguments: [^String name]
Joker returns: [^arrayOf*MX, ^Error] -
LookupNS
Function v1.0(LookupNS name)
LookupNS returns the DNS NS records for the given domain name.
The returned name server names are validated to be properly
formatted presentation-format domain names. If the response contains
invalid names, those records are filtered out and an error
will be returned alongside the remaining results, if any.
LookupNS uses context.Background internally; to specify the context, use
Resolver.LookupNS.
Go input arguments: (name string)
Go returns: ([]*NS, error)
Joker input arguments: [^String name]
Joker returns: [^arrayOf*NS, ^Error] -
LookupPort
Function v1.0(LookupPort network service)
LookupPort looks up the port for the given network and service.
LookupPort uses context.Background internally; to specify the context, use
Resolver.LookupPort.
Go input arguments: (network string, service string)
Go returns: (port int, err error)
Joker input arguments: [^String network, ^String service]
Joker returns: [^Int port, ^Error err] -
LookupSRV
Function v1.0(LookupSRV service proto name)
LookupSRV tries to resolve an SRV query of the given service,
protocol, and domain name. The proto is "tcp" or "udp".
The returned records are sorted by priority and randomized
by weight within a priority.
LookupSRV constructs the DNS name to look up following RFC 2782.
That is, it looks up _service._proto.name. To accommodate services
publishing SRV records under non-standard names, if both service
and proto are empty strings, LookupSRV looks up name directly.
The returned service names are validated to be properly
formatted presentation-format domain names. If the response contains
invalid names, those records are filtered out and an error
will be returned alongside the remaining results, if any.
Go input arguments: (service string, proto string, name string)
Go returns: (cname string, addrs []*SRV, err error)
Joker input arguments: [^String service, ^String proto, ^String name]
Joker returns: [^String cname, ^arrayOf*SRV addrs, ^Error err] -
LookupTXT
Function v1.0(LookupTXT name)
LookupTXT returns the DNS TXT records for the given domain name.
LookupTXT uses context.Background internally; to specify the context, use
Resolver.LookupTXT.
Go input arguments: (name string)
Go returns: ([]string, error)
Joker input arguments: [^String name]
Joker returns: [^arrayOfString, ^Error] -
ParseCIDR
Function v1.0(ParseCIDR s)
ParseCIDR parses s as a CIDR notation IP address and prefix length,
like "192.0.2.0/24" or "2001:db8::/32", as defined in
RFC 4632 and RFC 4291.
It returns the IP address and the network implied by the IP and
prefix length.
For example, ParseCIDR("192.0.2.1/24") returns the IP address
192.0.2.1 and the network 192.0.2.0/24.
Go input arguments: (s string)
Go returns: (IP, *IPNet, error)
Joker input arguments: [^String s]
Joker returns: [^IP, ^*IPNet, ^Error] -
ParseIP
Function v1.0(ParseIP s)
ParseIP parses s as an IP address, returning the result.
The string s can be in IPv4 dotted decimal ("192.0.2.1"), IPv6
("2001:db8::68"), or IPv4-mapped IPv6 ("::ffff:192.0.2.1") form.
If s is not a valid textual representation of an IP address,
ParseIP returns nil.
Go input arguments: (s string)
Go returns: IP
Joker input arguments: [^String s]
Joker returns: ^IP -
ParseMAC
Function v1.0(ParseMAC s)
ParseMAC parses s as an IEEE 802 MAC-48, EUI-48, EUI-64, or a 20-octet
IP over InfiniBand link-layer address using one of the following formats:
00:00:5e:00:53:01
02:00:5e:10:00:00:00:01
00:00:00:00:fe:80:00:00:00:00:00:00:02:00:5e:10:00:00:00:01
00-00-5e-00-53-01
02-00-5e-10-00-00-00-01
00-00-00-00-fe-80-00-00-00-00-00-00-02-00-5e-10-00-00-00-01
0000.5e00.5301
0200.5e10.0000.0001
0000.0000.fe80.0000.0000.0000.0200.5e10.0000.0001
Go input arguments: (s string)
Go returns: (hw HardwareAddr, err error)
Joker input arguments: [^String s]
Joker returns: [^HardwareAddr hw, ^Error err] -
Pipe
Function v1.0(Pipe)
Pipe creates a synchronous, in-memory, full duplex
network connection; both ends implement the Conn interface.
Reads on one end are matched with writes on the other,
copying data directly between the two; there is no internal
buffering.
Go returns: (Conn, Conn)
Joker input arguments: []
Joker returns: [^Conn, ^Conn] -
ResolveIPAddr
Function v1.0(ResolveIPAddr network address)
ResolveIPAddr returns an address of IP end point.
The network must be an IP network name.
If the host in the address parameter is not a literal IP address,
ResolveIPAddr resolves the address to an address of IP end point.
Otherwise, it parses the address as a literal IP address.
The address parameter can use a host name, but this is not
recommended, because it will return at most one of the host name's
IP addresses.
See func Dial for a description of the network and address
parameters.
Go input arguments: (network string, address string)
Go returns: (*IPAddr, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^*IPAddr, ^Error] -
ResolveTCPAddr
Function v1.0(ResolveTCPAddr network address)
ResolveTCPAddr returns an address of TCP end point.
The network must be a TCP network name.
If the host in the address parameter is not a literal IP address or
the port is not a literal port number, ResolveTCPAddr resolves the
address to an address of TCP end point.
Otherwise, it parses the address as a pair of literal IP address
and port number.
The address parameter can use a host name, but this is not
recommended, because it will return at most one of the host name's
IP addresses.
See func Dial for a description of the network and address
parameters.
Go input arguments: (network string, address string)
Go returns: (*TCPAddr, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^*TCPAddr, ^Error] -
ResolveUDPAddr
Function v1.0(ResolveUDPAddr network address)
ResolveUDPAddr returns an address of UDP end point.
The network must be a UDP network name.
If the host in the address parameter is not a literal IP address or
the port is not a literal port number, ResolveUDPAddr resolves the
address to an address of UDP end point.
Otherwise, it parses the address as a pair of literal IP address
and port number.
The address parameter can use a host name, but this is not
recommended, because it will return at most one of the host name's
IP addresses.
See func Dial for a description of the network and address
parameters.
Go input arguments: (network string, address string)
Go returns: (*UDPAddr, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^*UDPAddr, ^Error] -
ResolveUnixAddr
Function v1.0(ResolveUnixAddr network address)
ResolveUnixAddr returns an address of Unix domain socket end point.
The network must be a Unix network name.
See func Dial for a description of the network and address
parameters.
Go input arguments: (network string, address string)
Go returns: (*UnixAddr, error)
Joker input arguments: [^String network, ^String address]
Joker returns: [^*UnixAddr, ^Error] -
SplitHostPort
Function v1.0(SplitHostPort hostport)
SplitHostPort splits a network address of the form "host:port",
"host%zone:port", "[host]:port" or "[host%zone]:port" into host or
host%zone and port.
A literal IPv6 address in hostport must be enclosed in square
brackets, as in "[::1]:80", "[::1%lo0]:80".
See func Dial for a description of the hostport parameter, and host
and port results.
Go input arguments: (hostport string)
Go returns: (host string, port string, err error)
Joker input arguments: [^String hostport]
Joker returns: [^String host, ^String port, ^Error err] -
TCPAddrFromAddrPort
Function v1.0(TCPAddrFromAddrPort addr)
TCPAddrFromAddrPort returns addr as a TCPAddr. If addr.IsValid() is false,
then the returned TCPAddr will contain a nil IP field, indicating an
address family-agnostic unspecified address.
Go input arguments: (addr net/netip.AddrPort)
Go returns: *TCPAddr
Joker input arguments: [^go.std.net.netip/AddrPort addr]
Joker returns: ^*TCPAddr -
UDPAddrFromAddrPort
Function v1.0(UDPAddrFromAddrPort addr)
UDPAddrFromAddrPort returns addr as a UDPAddr. If addr.IsValid() is false,
then the returned UDPAddr will contain a nil IP field, indicating an
address family-agnostic unspecified address.
Go input arguments: (addr net/netip.AddrPort)
Go returns: *UDPAddr
Joker input arguments: [^go.std.net.netip/AddrPort addr]
Joker returns: ^*UDPAddr
Types
-
*AddrError
Concrete Type v1.0 -
Error
Receiver for *AddrError v1.0([])
-
Temporary
Receiver for *AddrError v1.0([])
-
Timeout
Receiver for *AddrError v1.0([])
-
*Buffers
Concrete Type v1.0Buffers contains zero or more runs of bytes to write.
On certain machines, for certain types of connections, this is
optimized into an OS-specific batch write operation (such as
"writev").
-
Read
Receiver for *Buffers v1.0([p])
Read from the buffers.
Read implements io.Reader for Buffers.
Read modifies the slice v as well as v[i] for 0 <= i < len(v),
but does not modify v[i][j] for any i, j.
-
WriteTo
Receiver for *Buffers v1.0([w])
WriteTo writes contents of the buffers to w.
WriteTo implements io.WriterTo for Buffers.
WriteTo modifies the slice v as well as v[i] for 0 <= i < len(v),
but does not modify v[i][j] for any i, j.
-
*DNSConfigError
Concrete Type v1.0DNSConfigError represents an error reading the machine's DNS configuration.
(No longer used; kept for compatibility.)
-
Error
Receiver for *DNSConfigError v1.0([])
-
Temporary
Receiver for *DNSConfigError v1.0([])
-
Timeout
Receiver for *DNSConfigError v1.0([])
-
Unwrap
Receiver for *DNSConfigError v1.0([])
-
*DNSError
Concrete Type v1.0DNSError represents a DNS lookup error.
-
Error
Receiver for *DNSError v1.0([])
-
Temporary
Receiver for *DNSError v1.0([])
Temporary reports whether the DNS error is known to be temporary.
This is not always known; a DNS lookup may fail due to a temporary
error and return a DNSError for which Temporary returns false.
-
Timeout
Receiver for *DNSError v1.0([])
Timeout reports whether the DNS lookup is known to have timed out.
This is not always known; a DNS lookup may fail due to a timeout
and return a DNSError for which Timeout returns false.
-
*Dialer
Concrete Type v1.0A Dialer contains options for connecting to an address.
The zero value for each field is equivalent to dialing
without that option. Dialing with the zero value of Dialer
is therefore equivalent to just calling the Dial function.
It is safe to call Dialer's methods concurrently.
-
Dial
Receiver for *Dialer v1.0([network address])
Dial connects to the address on the named network.
See func Dial for a description of the network and address
parameters.
Dial uses context.Background internally; to specify the context, use
DialContext.
-
DialContext
Receiver for *Dialer v1.0([ctx network address])
DialContext connects to the address on the named network using
the provided context.
The provided Context must be non-nil. If the context expires before
the connection is complete, an error is returned. Once successfully
connected, any expiration of the context will not affect the
connection.
When using TCP, and the host in the address parameter resolves to multiple
network addresses, any dial timeout (from d.Timeout or ctx) is spread
over each consecutive dial, such that each is given an appropriate
fraction of the time to connect.
For example, if a host has 4 IP addresses and the timeout is 1 minute,
the connect to each single address will be given 15 seconds to complete
before trying the next one.
See func Dial for a description of the network and address
parameters.
-
*Flags
Concrete Type v1.0 -
*HardwareAddr
Concrete Type v1.0A HardwareAddr represents a physical hardware address.
-
*IP
Concrete Type v1.0An IP is a single IP address, a slice of bytes.
Functions in this package accept either 4-byte (IPv4)
or 16-byte (IPv6) slices as input.
Note that in this documentation, referring to an
IP address as an IPv4 address or an IPv6 address
is a semantic property of the address, not just the
length of the byte slice: a 16-byte slice can still
be an IPv4 address.
-
UnmarshalText
Receiver for *IP v1.0([text])
UnmarshalText implements the encoding.TextUnmarshaler interface.
The IP address is expected in a form accepted by ParseIP.
-
*IPAddr
Concrete Type v1.0IPAddr represents the address of an IP end point.
-
Network
Receiver for *IPAddr v1.0([])
Network returns the address's network name, "ip".
-
String
Receiver for *IPAddr v1.0([])
-
*IPConn
Concrete Type v1.0IPConn is the implementation of the Conn and PacketConn interfaces
for IP network connections.
-
Close
Receiver for *IPConn v1.0([])
Close closes the connection.
-
File
Receiver for *IPConn v1.0([])
File returns a copy of the underlying os.File.
It is the caller's responsibility to close f when finished.
Closing c does not affect f, and closing f does not affect c.
The returned os.File's file descriptor is different from the connection's.
Attempting to change properties of the original using this duplicate
may or may not have the desired effect.
-
LocalAddr
Receiver for *IPConn v1.0([])
LocalAddr returns the local network address.
The Addr returned is shared by all invocations of LocalAddr, so
do not modify it.
-
Read
Receiver for *IPConn v1.0([b])
Read implements the Conn Read method.
-
ReadFrom
Receiver for *IPConn v1.0([b])
ReadFrom implements the PacketConn ReadFrom method.
-
ReadFromIP
Receiver for *IPConn v1.0([b])
ReadFromIP acts like ReadFrom but returns an IPAddr.
-
ReadMsgIP
Receiver for *IPConn v1.0([b oob])
ReadMsgIP reads a message from c, copying the payload into b and
the associated out-of-band data into oob. It returns the number of
bytes copied into b, the number of bytes copied into oob, the flags
that were set on the message and the source address of the message.
The packages golang.org/x/net/ipv4 and golang.org/x/net/ipv6 can be
used to manipulate IP-level socket options in oob.
-
RemoteAddr
Receiver for *IPConn v1.0([])
RemoteAddr returns the remote network address.
The Addr returned is shared by all invocations of RemoteAddr, so
do not modify it.
-
SetDeadline
Receiver for *IPConn v1.0([t])
SetDeadline implements the Conn SetDeadline method.
-
SetReadBuffer
Receiver for *IPConn v1.0([bytes])
SetReadBuffer sets the size of the operating system's
receive buffer associated with the connection.
-
SetReadDeadline
Receiver for *IPConn v1.0([t])
SetReadDeadline implements the Conn SetReadDeadline method.
-
SetWriteBuffer
Receiver for *IPConn v1.0([bytes])
SetWriteBuffer sets the size of the operating system's
transmit buffer associated with the connection.
-
SetWriteDeadline
Receiver for *IPConn v1.0([t])
SetWriteDeadline implements the Conn SetWriteDeadline method.
-
SyscallConn
Receiver for *IPConn v1.0([])
SyscallConn returns a raw network connection.
This implements the syscall.Conn interface.
-
Write
Receiver for *IPConn v1.0([b])
Write implements the Conn Write method.
-
WriteMsgIP
Receiver for *IPConn v1.0([b oob addr])
WriteMsgIP writes a message to addr via c, copying the payload from
b and the associated out-of-band data from oob. It returns the
number of payload and out-of-band bytes written.
The packages golang.org/x/net/ipv4 and golang.org/x/net/ipv6 can be
used to manipulate IP-level socket options in oob.
-
WriteTo
Receiver for *IPConn v1.0([b addr])
WriteTo implements the PacketConn WriteTo method.
-
WriteToIP
Receiver for *IPConn v1.0([b addr])
WriteToIP acts like WriteTo but takes an IPAddr.
-
*IPMask
Concrete Type v1.0An IPMask is a bitmask that can be used to manipulate
IP addresses for IP addressing and routing.
See type IPNet and func ParseCIDR for details.
-
*IPNet
Concrete Type v1.0An IPNet represents an IP network.
-
Contains
Receiver for *IPNet v1.0([ip])
Contains reports whether the network includes ip.
-
Network
Receiver for *IPNet v1.0([])
Network returns the address's network name, "ip+net".
-
String
Receiver for *IPNet v1.0([])
String returns the CIDR notation of n like "192.0.2.0/24"
or "2001:db8::/48" as defined in RFC 4632 and RFC 4291.
If the mask is not in the canonical form, it returns the
string which consists of an IP address, followed by a slash
character and a mask expressed as hexadecimal form with no
punctuation like "198.51.100.0/c000ff00".
-
*Interface
Concrete Type v1.0Interface represents a mapping between network interface name
and index. It also represents network interface facility
information.
-
Addrs
Receiver for *Interface v1.0([])
Addrs returns a list of unicast interface addresses for a specific
interface.
-
MulticastAddrs
Receiver for *Interface v1.0([])
MulticastAddrs returns a list of multicast, joined group addresses
for a specific interface.
-
*InvalidAddrError
Concrete Type v1.0 -
*ListenConfig
Concrete Type v1.0ListenConfig contains options for listening to an address.
-
Listen
Receiver for *ListenConfig v1.0([ctx network address])
Listen announces on the local network address.
See func Listen for a description of the network and address
parameters.
-
ListenPacket
Receiver for *ListenConfig v1.0([ctx network address])
ListenPacket announces on the local network address.
See func ListenPacket for a description of the network and address
parameters.
-
*MX
Concrete Type v1.0An MX represents a single DNS MX record.
-
*NS
Concrete Type v1.0An NS represents a single DNS NS record.
-
*OpError
Concrete Type v1.0OpError is the error type usually returned by functions in the net
package. It describes the operation, network type, and address of
an error.
-
Error
Receiver for *OpError v1.0([])
-
Temporary
Receiver for *OpError v1.0([])
-
Timeout
Receiver for *OpError v1.0([])
-
Unwrap
Receiver for *OpError v1.0([])
-
*ParseError
Concrete Type v1.0A ParseError is the error type of literal network address parsers.
-
Error
Receiver for *ParseError v1.0([])
-
Temporary
Receiver for *ParseError v1.0([])
-
Timeout
Receiver for *ParseError v1.0([])
-
*Resolver
Concrete Type v1.0A Resolver looks up names and numbers.
A nil *Resolver is equivalent to a zero Resolver.
-
LookupAddr
Receiver for *Resolver v1.0([ctx addr])
LookupAddr performs a reverse lookup for the given address, returning a list
of names mapping to that address.
The returned names are validated to be properly formatted presentation-format
domain names. If the response contains invalid names, those records are filtered
out and an error will be returned alongside the remaining results, if any.
-
LookupCNAME
Receiver for *Resolver v1.0([ctx host])
LookupCNAME returns the canonical name for the given host.
Callers that do not care about the canonical name can call
LookupHost or LookupIP directly; both take care of resolving
the canonical name as part of the lookup.
A canonical name is the final name after following zero
or more CNAME records.
LookupCNAME does not return an error if host does not
contain DNS "CNAME" records, as long as host resolves to
address records.
The returned canonical name is validated to be a properly
formatted presentation-format domain name.
-
LookupHost
Receiver for *Resolver v1.0([ctx host])
LookupHost looks up the given host using the local resolver.
It returns a slice of that host's addresses.
-
LookupIP
Receiver for *Resolver v1.0([ctx network host])
LookupIP looks up host for the given network using the local resolver.
It returns a slice of that host's IP addresses of the type specified by
network.
network must be one of "ip", "ip4" or "ip6".
-
LookupIPAddr
Receiver for *Resolver v1.0([ctx host])
LookupIPAddr looks up host using the local resolver.
It returns a slice of that host's IPv4 and IPv6 addresses.
-
LookupMX
Receiver for *Resolver v1.0([ctx name])
LookupMX returns the DNS MX records for the given domain name sorted by preference.
The returned mail server names are validated to be properly
formatted presentation-format domain names. If the response contains
invalid names, those records are filtered out and an error
will be returned alongside the remaining results, if any.
-
LookupNS
Receiver for *Resolver v1.0([ctx name])
LookupNS returns the DNS NS records for the given domain name.
The returned name server names are validated to be properly
formatted presentation-format domain names. If the response contains
invalid names, those records are filtered out and an error
will be returned alongside the remaining results, if any.
-
LookupNetIP
Receiver for *Resolver v1.0([ctx network host])
LookupNetIP looks up host using the local resolver.
It returns a slice of that host's IP addresses of the type specified by
network.
The network must be one of "ip", "ip4" or "ip6".
-
LookupPort
Receiver for *Resolver v1.0([ctx network service])
LookupPort looks up the port for the given network and service.
-
LookupSRV
Receiver for *Resolver v1.0([ctx service proto name])
LookupSRV tries to resolve an SRV query of the given service,
protocol, and domain name. The proto is "tcp" or "udp".
The returned records are sorted by priority and randomized
by weight within a priority.
LookupSRV constructs the DNS name to look up following RFC 2782.
That is, it looks up _service._proto.name. To accommodate services
publishing SRV records under non-standard names, if both service
and proto are empty strings, LookupSRV looks up name directly.
The returned service names are validated to be properly
formatted presentation-format domain names. If the response contains
invalid names, those records are filtered out and an error
will be returned alongside the remaining results, if any.
-
LookupTXT
Receiver for *Resolver v1.0([ctx name])
LookupTXT returns the DNS TXT records for the given domain name.
-
*SRV
Concrete Type v1.0An SRV represents a single DNS SRV record.
-
*TCPAddr
Concrete Type v1.0TCPAddr represents the address of a TCP end point.
-
AddrPort
Receiver for *TCPAddr v1.0([])
AddrPort returns the TCPAddr a as a netip.AddrPort.
If a.Port does not fit in a uint16, it's silently truncated.
If a is nil, a zero value is returned.
-
Network
Receiver for *TCPAddr v1.0([])
Network returns the address's network name, "tcp".
-
String
Receiver for *TCPAddr v1.0([])
-
*TCPConn
Concrete Type v1.0TCPConn is an implementation of the Conn interface for TCP network
connections.
-
Close
Receiver for *TCPConn v1.0([])
Close closes the connection.
-
CloseRead
Receiver for *TCPConn v1.0([])
CloseRead shuts down the reading side of the TCP connection.
Most callers should just use Close.
-
CloseWrite
Receiver for *TCPConn v1.0([])
CloseWrite shuts down the writing side of the TCP connection.
Most callers should just use Close.
-
File
Receiver for *TCPConn v1.0([])
File returns a copy of the underlying os.File.
It is the caller's responsibility to close f when finished.
Closing c does not affect f, and closing f does not affect c.
The returned os.File's file descriptor is different from the connection's.
Attempting to change properties of the original using this duplicate
may or may not have the desired effect.
-
LocalAddr
Receiver for *TCPConn v1.0([])
LocalAddr returns the local network address.
The Addr returned is shared by all invocations of LocalAddr, so
do not modify it.
-
Read
Receiver for *TCPConn v1.0([b])
Read implements the Conn Read method.
-
ReadFrom
Receiver for *TCPConn v1.0([r])
ReadFrom implements the io.ReaderFrom ReadFrom method.
-
RemoteAddr
Receiver for *TCPConn v1.0([])
RemoteAddr returns the remote network address.
The Addr returned is shared by all invocations of RemoteAddr, so
do not modify it.
-
SetDeadline
Receiver for *TCPConn v1.0([t])
SetDeadline implements the Conn SetDeadline method.
-
SetKeepAlive
Receiver for *TCPConn v1.0([keepalive])
SetKeepAlive sets whether the operating system should send
keep-alive messages on the connection.
-
SetKeepAlivePeriod
Receiver for *TCPConn v1.0([d])
SetKeepAlivePeriod sets period between keep-alives.
-
SetLinger
Receiver for *TCPConn v1.0([sec])
SetLinger sets the behavior of Close on a connection which still
has data waiting to be sent or to be acknowledged.
If sec < 0 (the default), the operating system finishes sending the
data in the background.
If sec == 0, the operating system discards any unsent or
unacknowledged data.
If sec > 0, the data is sent in the background as with sec < 0. On
some operating systems after sec seconds have elapsed any remaining
unsent data may be discarded.
-
SetNoDelay
Receiver for *TCPConn v1.0([noDelay])
SetNoDelay controls whether the operating system should delay
packet transmission in hopes of sending fewer packets (Nagle's
algorithm). The default is true (no delay), meaning that data is
sent as soon as possible after a Write.
-
SetReadBuffer
Receiver for *TCPConn v1.0([bytes])
SetReadBuffer sets the size of the operating system's
receive buffer associated with the connection.
-
SetReadDeadline
Receiver for *TCPConn v1.0([t])
SetReadDeadline implements the Conn SetReadDeadline method.
-
SetWriteBuffer
Receiver for *TCPConn v1.0([bytes])
SetWriteBuffer sets the size of the operating system's
transmit buffer associated with the connection.
-
SetWriteDeadline
Receiver for *TCPConn v1.0([t])
SetWriteDeadline implements the Conn SetWriteDeadline method.
-
SyscallConn
Receiver for *TCPConn v1.0([])
SyscallConn returns a raw network connection.
This implements the syscall.Conn interface.
-
Write
Receiver for *TCPConn v1.0([b])
Write implements the Conn Write method.
-
*TCPListener
Concrete Type v1.0TCPListener is a TCP network listener. Clients should typically
use variables of type Listener instead of assuming TCP.
-
Accept
Receiver for *TCPListener v1.0([])
Accept implements the Accept method in the Listener interface; it
waits for the next call and returns a generic Conn.
-
AcceptTCP
Receiver for *TCPListener v1.0([])
AcceptTCP accepts the next incoming call and returns the new
connection.
-
Addr
Receiver for *TCPListener v1.0([])
Addr returns the listener's network address, a *TCPAddr.
The Addr returned is shared by all invocations of Addr, so
do not modify it.
-
Close
Receiver for *TCPListener v1.0([])
Close stops listening on the TCP address.
Already Accepted connections are not closed.
-
File
Receiver for *TCPListener v1.0([])
File returns a copy of the underlying os.File.
It is the caller's responsibility to close f when finished.
Closing l does not affect f, and closing f does not affect l.
The returned os.File's file descriptor is different from the
connection's. Attempting to change properties of the original
using this duplicate may or may not have the desired effect.
-
SetDeadline
Receiver for *TCPListener v1.0([t])
SetDeadline sets the deadline associated with the listener.
A zero time value disables the deadline.
-
SyscallConn
Receiver for *TCPListener v1.0([])
SyscallConn returns a raw network connection.
This implements the syscall.Conn interface.
The returned RawConn only supports calling Control. Read and
Write return an error.
-
*UDPAddr
Concrete Type v1.0UDPAddr represents the address of a UDP end point.
-
AddrPort
Receiver for *UDPAddr v1.0([])
AddrPort returns the UDPAddr a as a netip.AddrPort.
If a.Port does not fit in a uint16, it's silently truncated.
If a is nil, a zero value is returned.
-
Network
Receiver for *UDPAddr v1.0([])
Network returns the address's network name, "udp".
-
String
Receiver for *UDPAddr v1.0([])
-
*UDPConn
Concrete Type v1.0UDPConn is the implementation of the Conn and PacketConn interfaces
for UDP network connections.
-
Close
Receiver for *UDPConn v1.0([])
Close closes the connection.
-
File
Receiver for *UDPConn v1.0([])
File returns a copy of the underlying os.File.
It is the caller's responsibility to close f when finished.
Closing c does not affect f, and closing f does not affect c.
The returned os.File's file descriptor is different from the connection's.
Attempting to change properties of the original using this duplicate
may or may not have the desired effect.
-
LocalAddr
Receiver for *UDPConn v1.0([])
LocalAddr returns the local network address.
The Addr returned is shared by all invocations of LocalAddr, so
do not modify it.
-
Read
Receiver for *UDPConn v1.0([b])
Read implements the Conn Read method.
-
ReadFrom
Receiver for *UDPConn v1.0([b])
ReadFrom implements the PacketConn ReadFrom method.
-
ReadFromUDP
Receiver for *UDPConn v1.0([b])
ReadFromUDP acts like ReadFrom but returns a UDPAddr.
-
ReadFromUDPAddrPort
Receiver for *UDPConn v1.0([b])
ReadFromUDPAddrPort acts like ReadFrom but returns a netip.AddrPort.
-
ReadMsgUDP
Receiver for *UDPConn v1.0([b oob])
ReadMsgUDP reads a message from c, copying the payload into b and
the associated out-of-band data into oob. It returns the number of
bytes copied into b, the number of bytes copied into oob, the flags
that were set on the message and the source address of the message.
The packages golang.org/x/net/ipv4 and golang.org/x/net/ipv6 can be
used to manipulate IP-level socket options in oob.
-
ReadMsgUDPAddrPort
Receiver for *UDPConn v1.0([b oob])
ReadMsgUDPAddrPort is like ReadMsgUDP but returns an netip.AddrPort instead of a UDPAddr.
-
RemoteAddr
Receiver for *UDPConn v1.0([])
RemoteAddr returns the remote network address.
The Addr returned is shared by all invocations of RemoteAddr, so
do not modify it.
-
SetDeadline
Receiver for *UDPConn v1.0([t])
SetDeadline implements the Conn SetDeadline method.
-
SetReadBuffer
Receiver for *UDPConn v1.0([bytes])
SetReadBuffer sets the size of the operating system's
receive buffer associated with the connection.
-
SetReadDeadline
Receiver for *UDPConn v1.0([t])
SetReadDeadline implements the Conn SetReadDeadline method.
-
SetWriteBuffer
Receiver for *UDPConn v1.0([bytes])
SetWriteBuffer sets the size of the operating system's
transmit buffer associated with the connection.
-
SetWriteDeadline
Receiver for *UDPConn v1.0([t])
SetWriteDeadline implements the Conn SetWriteDeadline method.
-
SyscallConn
Receiver for *UDPConn v1.0([])
SyscallConn returns a raw network connection.
This implements the syscall.Conn interface.
-
Write
Receiver for *UDPConn v1.0([b])
Write implements the Conn Write method.
-
WriteMsgUDP
Receiver for *UDPConn v1.0([b oob addr])
WriteMsgUDP writes a message to addr via c if c isn't connected, or
to c's remote address if c is connected (in which case addr must be
nil). The payload is copied from b and the associated out-of-band
data is copied from oob. It returns the number of payload and
out-of-band bytes written.
The packages golang.org/x/net/ipv4 and golang.org/x/net/ipv6 can be
used to manipulate IP-level socket options in oob.
-
WriteMsgUDPAddrPort
Receiver for *UDPConn v1.0([b oob addr])
WriteMsgUDPAddrPort is like WriteMsgUDP but takes a netip.AddrPort instead of a UDPAddr.
-
WriteTo
Receiver for *UDPConn v1.0([b addr])
WriteTo implements the PacketConn WriteTo method.
-
WriteToUDP
Receiver for *UDPConn v1.0([b addr])
WriteToUDP acts like WriteTo but takes a UDPAddr.
-
WriteToUDPAddrPort
Receiver for *UDPConn v1.0([b addr])
WriteToUDPAddrPort acts like WriteTo but takes a netip.AddrPort.
-
*UnixAddr
Concrete Type v1.0UnixAddr represents the address of a Unix domain socket end point.
-
Network
Receiver for *UnixAddr v1.0([])
Network returns the address's network name, "unix", "unixgram" or
"unixpacket".
-
String
Receiver for *UnixAddr v1.0([])
-
*UnixConn
Concrete Type v1.0UnixConn is an implementation of the Conn interface for connections
to Unix domain sockets.
-
Close
Receiver for *UnixConn v1.0([])
Close closes the connection.
-
CloseRead
Receiver for *UnixConn v1.0([])
CloseRead shuts down the reading side of the Unix domain connection.
Most callers should just use Close.
-
CloseWrite
Receiver for *UnixConn v1.0([])
CloseWrite shuts down the writing side of the Unix domain connection.
Most callers should just use Close.
-
File
Receiver for *UnixConn v1.0([])
File returns a copy of the underlying os.File.
It is the caller's responsibility to close f when finished.
Closing c does not affect f, and closing f does not affect c.
The returned os.File's file descriptor is different from the connection's.
Attempting to change properties of the original using this duplicate
may or may not have the desired effect.
-
LocalAddr
Receiver for *UnixConn v1.0([])
LocalAddr returns the local network address.
The Addr returned is shared by all invocations of LocalAddr, so
do not modify it.
-
Read
Receiver for *UnixConn v1.0([b])
Read implements the Conn Read method.
-
ReadFrom
Receiver for *UnixConn v1.0([b])
ReadFrom implements the PacketConn ReadFrom method.
-
ReadFromUnix
Receiver for *UnixConn v1.0([b])
ReadFromUnix acts like ReadFrom but returns a UnixAddr.
-
ReadMsgUnix
Receiver for *UnixConn v1.0([b oob])
ReadMsgUnix reads a message from c, copying the payload into b and
the associated out-of-band data into oob. It returns the number of
bytes copied into b, the number of bytes copied into oob, the flags
that were set on the message and the source address of the message.
Note that if len(b) == 0 and len(oob) > 0, this function will still
read (and discard) 1 byte from the connection.
-
RemoteAddr
Receiver for *UnixConn v1.0([])
RemoteAddr returns the remote network address.
The Addr returned is shared by all invocations of RemoteAddr, so
do not modify it.
-
SetDeadline
Receiver for *UnixConn v1.0([t])
SetDeadline implements the Conn SetDeadline method.
-
SetReadBuffer
Receiver for *UnixConn v1.0([bytes])
SetReadBuffer sets the size of the operating system's
receive buffer associated with the connection.
-
SetReadDeadline
Receiver for *UnixConn v1.0([t])
SetReadDeadline implements the Conn SetReadDeadline method.
-
SetWriteBuffer
Receiver for *UnixConn v1.0([bytes])
SetWriteBuffer sets the size of the operating system's
transmit buffer associated with the connection.
-
SetWriteDeadline
Receiver for *UnixConn v1.0([t])
SetWriteDeadline implements the Conn SetWriteDeadline method.
-
SyscallConn
Receiver for *UnixConn v1.0([])
SyscallConn returns a raw network connection.
This implements the syscall.Conn interface.
-
Write
Receiver for *UnixConn v1.0([b])
Write implements the Conn Write method.
-
WriteMsgUnix
Receiver for *UnixConn v1.0([b oob addr])
WriteMsgUnix writes a message to addr via c, copying the payload
from b and the associated out-of-band data from oob. It returns the
number of payload and out-of-band bytes written.
Note that if len(b) == 0 and len(oob) > 0, this function will still
write 1 byte to the connection.
-
WriteTo
Receiver for *UnixConn v1.0([b addr])
WriteTo implements the PacketConn WriteTo method.
-
WriteToUnix
Receiver for *UnixConn v1.0([b addr])
WriteToUnix acts like WriteTo but takes a UnixAddr.
-
*UnixListener
Concrete Type v1.0UnixListener is a Unix domain socket listener. Clients should
typically use variables of type Listener instead of assuming Unix
domain sockets.
-
Accept
Receiver for *UnixListener v1.0([])
Accept implements the Accept method in the Listener interface.
Returned connections will be of type *UnixConn.
-
AcceptUnix
Receiver for *UnixListener v1.0([])
AcceptUnix accepts the next incoming call and returns the new
connection.
-
Addr
Receiver for *UnixListener v1.0([])
Addr returns the listener's network address.
The Addr returned is shared by all invocations of Addr, so
do not modify it.
-
Close
Receiver for *UnixListener v1.0([])
Close stops listening on the Unix address. Already accepted
connections are not closed.
-
File
Receiver for *UnixListener v1.0([])
File returns a copy of the underlying os.File.
It is the caller's responsibility to close f when finished.
Closing l does not affect f, and closing f does not affect l.
The returned os.File's file descriptor is different from the
connection's. Attempting to change properties of the original
using this duplicate may or may not have the desired effect.
-
SetDeadline
Receiver for *UnixListener v1.0([t])
SetDeadline sets the deadline associated with the listener.
A zero time value disables the deadline.
-
SetUnlinkOnClose
Receiver for *UnixListener v1.0([unlink])
SetUnlinkOnClose sets whether the underlying socket file should be removed
from the file system when the listener is closed.
The default behavior is to unlink the socket file only when package net created it.
That is, when the listener and the underlying socket file were created by a call to
Listen or ListenUnix, then by default closing the listener will remove the socket file.
but if the listener was created by a call to FileListener to use an already existing
socket file, then by default closing the listener will not remove the socket file.
-
SyscallConn
Receiver for *UnixListener v1.0([])
SyscallConn returns a raw network connection.
This implements the syscall.Conn interface.
The returned RawConn only supports calling Control. Read and
Write return an error.
-
*UnknownNetworkError
Concrete Type v1.0 -
Addr
Abstract Type v1.0Addr represents a network end point address.
The two methods Network and String conventionally return strings
that can be passed as the arguments to Dial, but the exact form
and meaning of the strings is up to the implementation.
-
Network
Method for Addr v1.0([])
-
String
Method for Addr v1.0([])
-
AddrError
Concrete Type v1.0 -
Buffers
Concrete Type v1.0Buffers contains zero or more runs of bytes to write.
On certain machines, for certain types of connections, this is
optimized into an OS-specific batch write operation (such as
"writev").
-
Conn
Abstract Type v1.0Conn is a generic stream-oriented network connection.
Multiple goroutines may invoke methods on a Conn simultaneously.
-
Close
Method for Conn v1.0([])
-
LocalAddr
Method for Conn v1.0([])
-
Read
Method for Conn v1.0([b])
-
RemoteAddr
Method for Conn v1.0([])
-
SetDeadline
Method for Conn v1.0([t])
-
SetReadDeadline
Method for Conn v1.0([t])
-
SetWriteDeadline
Method for Conn v1.0([t])
-
Write
Method for Conn v1.0([b])
-
DNSConfigError
Concrete Type v1.0DNSConfigError represents an error reading the machine's DNS configuration.
(No longer used; kept for compatibility.)
-
DNSError
Concrete Type v1.0DNSError represents a DNS lookup error.
-
Dialer
Concrete Type v1.0A Dialer contains options for connecting to an address.
The zero value for each field is equivalent to dialing
without that option. Dialing with the zero value of Dialer
is therefore equivalent to just calling the Dial function.
It is safe to call Dialer's methods concurrently.
-
Error
Abstract Type v1.0An Error represents a network error.
-
Error
Method for Error v1.0([])
-
Temporary
Method for Error v1.0([])
-
Timeout
Method for Error v1.0([])
-
Flags
Concrete Type v1.0 -
String
Receiver for Flags v1.0([])
-
HardwareAddr
Concrete Type v1.0A HardwareAddr represents a physical hardware address.
-
String
Receiver for HardwareAddr v1.0([])
-
IP
Concrete Type v1.0An IP is a single IP address, a slice of bytes.
Functions in this package accept either 4-byte (IPv4)
or 16-byte (IPv6) slices as input.
Note that in this documentation, referring to an
IP address as an IPv4 address or an IPv6 address
is a semantic property of the address, not just the
length of the byte slice: a 16-byte slice can still
be an IPv4 address.
-
DefaultMask
Receiver for IP v1.0([])
DefaultMask returns the default IP mask for the IP address ip.
Only IPv4 addresses have default masks; DefaultMask returns
nil if ip is not a valid IPv4 address.
-
Equal
Receiver for IP v1.0([x])
Equal reports whether ip and x are the same IP address.
An IPv4 address and that same address in IPv6 form are
considered to be equal.
-
IsGlobalUnicast
Receiver for IP v1.0([])
IsGlobalUnicast reports whether ip is a global unicast
address.
The identification of global unicast addresses uses address type
identification as defined in RFC 1122, RFC 4632 and RFC 4291 with
the exception of IPv4 directed broadcast addresses.
It returns true even if ip is in IPv4 private address space or
local IPv6 unicast address space.
-
IsInterfaceLocalMulticast
Receiver for IP v1.0([])
IsInterfaceLocalMulticast reports whether ip is
an interface-local multicast address.
-
IsLinkLocalMulticast
Receiver for IP v1.0([])
IsLinkLocalMulticast reports whether ip is a link-local
multicast address.
-
IsLinkLocalUnicast
Receiver for IP v1.0([])
IsLinkLocalUnicast reports whether ip is a link-local
unicast address.
-
IsLoopback
Receiver for IP v1.0([])
IsLoopback reports whether ip is a loopback address.
-
IsMulticast
Receiver for IP v1.0([])
IsMulticast reports whether ip is a multicast address.
-
IsPrivate
Receiver for IP v1.0([])
IsPrivate reports whether ip is a private address, according to
RFC 1918 (IPv4 addresses) and RFC 4193 (IPv6 addresses).
-
IsUnspecified
Receiver for IP v1.0([])
IsUnspecified reports whether ip is an unspecified address, either
the IPv4 address "0.0.0.0" or the IPv6 address "::".
-
MarshalText
Receiver for IP v1.0([])
MarshalText implements the encoding.TextMarshaler interface.
The encoding is the same as returned by String, with one exception:
When len(ip) is zero, it returns an empty slice.
-
Mask
Receiver for IP v1.0([mask])
Mask returns the result of masking the IP address ip with mask.
-
String
Receiver for IP v1.0([])
String returns the string form of the IP address ip.
It returns one of 4 forms:
- "<nil>", if ip has length 0
- dotted decimal ("192.0.2.1"), if ip is an IPv4 or IP4-mapped IPv6 address
- IPv6 conforming to RFC 5952 ("2001:db8::1"), if ip is a valid IPv6 address
- the hexadecimal form of ip, without punctuation, if no other cases apply
-
To16
Receiver for IP v1.0([])
To16 converts the IP address ip to a 16-byte representation.
If ip is not an IP address (it is the wrong length), To16 returns nil.
-
To4
Receiver for IP v1.0([])
To4 converts the IPv4 address ip to a 4-byte representation.
If ip is not an IPv4 address, To4 returns nil.
-
IPAddr
Concrete Type v1.0IPAddr represents the address of an IP end point.
-
IPConn
Concrete Type v1.0IPConn is the implementation of the Conn and PacketConn interfaces
for IP network connections.
-
IPMask
Concrete Type v1.0An IPMask is a bitmask that can be used to manipulate
IP addresses for IP addressing and routing.
See type IPNet and func ParseCIDR for details.
-
Size
Receiver for IPMask v1.0([])
Size returns the number of leading ones and total bits in the mask.
If the mask is not in the canonical form--ones followed by zeros--then
Size returns 0, 0.
-
String
Receiver for IPMask v1.0([])
String returns the hexadecimal form of m, with no punctuation.
-
IPNet
Concrete Type v1.0An IPNet represents an IP network.
-
Interface
Concrete Type v1.0Interface represents a mapping between network interface name
and index. It also represents network interface facility
information.
-
InvalidAddrError
Concrete Type v1.0 -
Error
Receiver for InvalidAddrError v1.0([])
-
Temporary
Receiver for InvalidAddrError v1.0([])
-
Timeout
Receiver for InvalidAddrError v1.0([])
-
ListenConfig
Concrete Type v1.0ListenConfig contains options for listening to an address.
-
Listener
Abstract Type v1.0A Listener is a generic network listener for stream-oriented protocols.
Multiple goroutines may invoke methods on a Listener simultaneously.
-
Accept
Method for Listener v1.0([])
-
Addr
Method for Listener v1.0([])
-
Close
Method for Listener v1.0([])
-
MX
Concrete Type v1.0An MX represents a single DNS MX record.
-
NS
Concrete Type v1.0An NS represents a single DNS NS record.
-
OpError
Concrete Type v1.0OpError is the error type usually returned by functions in the net
package. It describes the operation, network type, and address of
an error.
-
PacketConn
Abstract Type v1.0PacketConn is a generic packet-oriented network connection.
Multiple goroutines may invoke methods on a PacketConn simultaneously.
-
Close
Method for PacketConn v1.0([])
-
LocalAddr
Method for PacketConn v1.0([])
-
ReadFrom
Method for PacketConn v1.0([p])
-
SetDeadline
Method for PacketConn v1.0([t])
-
SetReadDeadline
Method for PacketConn v1.0([t])
-
SetWriteDeadline
Method for PacketConn v1.0([t])
-
WriteTo
Method for PacketConn v1.0([p addr])
-
ParseError
Concrete Type v1.0A ParseError is the error type of literal network address parsers.
-
Resolver
Concrete Type v1.0A Resolver looks up names and numbers.
A nil *Resolver is equivalent to a zero Resolver.
-
SRV
Concrete Type v1.0An SRV represents a single DNS SRV record.
-
TCPAddr
Concrete Type v1.0TCPAddr represents the address of a TCP end point.
-
TCPConn
Concrete Type v1.0TCPConn is an implementation of the Conn interface for TCP network
connections.
-
TCPListener
Concrete Type v1.0TCPListener is a TCP network listener. Clients should typically
use variables of type Listener instead of assuming TCP.
-
UDPAddr
Concrete Type v1.0UDPAddr represents the address of a UDP end point.
-
UDPConn
Concrete Type v1.0UDPConn is the implementation of the Conn and PacketConn interfaces
for UDP network connections.
-
UnixAddr
Concrete Type v1.0UnixAddr represents the address of a Unix domain socket end point.
-
UnixConn
Concrete Type v1.0UnixConn is an implementation of the Conn interface for connections
to Unix domain sockets.
-
UnixListener
Concrete Type v1.0UnixListener is a Unix domain socket listener. Clients should
typically use variables of type Listener instead of assuming Unix
domain sockets.
-
UnknownNetworkError
Concrete Type v1.0 -
Error
Receiver for UnknownNetworkError v1.0([])
-
Temporary
Receiver for UnknownNetworkError v1.0([])
-
Timeout
Receiver for UnknownNetworkError v1.0([])
-
arrayOfAddr
Concrete Type v1.0Addr represents a network end point address.
The two methods Network and String conventionally return strings
that can be passed as the arguments to Dial, but the exact form
and meaning of the strings is up to the implementation.
-
arrayOfAddrError
Concrete Type v1.0 -
arrayOfBuffers
Concrete Type v1.0Buffers contains zero or more runs of bytes to write.
On certain machines, for certain types of connections, this is
optimized into an OS-specific batch write operation (such as
"writev").
-
arrayOfConn
Concrete Type v1.0Conn is a generic stream-oriented network connection.
Multiple goroutines may invoke methods on a Conn simultaneously.
-
arrayOfDNSConfigError
Concrete Type v1.0DNSConfigError represents an error reading the machine's DNS configuration.
(No longer used; kept for compatibility.)
-
arrayOfDNSError
Concrete Type v1.0DNSError represents a DNS lookup error.
-
arrayOfDialer
Concrete Type v1.0A Dialer contains options for connecting to an address.
The zero value for each field is equivalent to dialing
without that option. Dialing with the zero value of Dialer
is therefore equivalent to just calling the Dial function.
It is safe to call Dialer's methods concurrently.
-
arrayOfError
Concrete Type v1.0An Error represents a network error.
-
arrayOfFlags
Concrete Type v1.0 -
arrayOfHardwareAddr
Concrete Type v1.0A HardwareAddr represents a physical hardware address.
-
arrayOfIP
Concrete Type v1.0An IP is a single IP address, a slice of bytes.
Functions in this package accept either 4-byte (IPv4)
or 16-byte (IPv6) slices as input.
Note that in this documentation, referring to an
IP address as an IPv4 address or an IPv6 address
is a semantic property of the address, not just the
length of the byte slice: a 16-byte slice can still
be an IPv4 address.
-
arrayOfIPAddr
Concrete Type v1.0IPAddr represents the address of an IP end point.
-
arrayOfIPConn
Concrete Type v1.0IPConn is the implementation of the Conn and PacketConn interfaces
for IP network connections.
-
arrayOfIPMask
Concrete Type v1.0An IPMask is a bitmask that can be used to manipulate
IP addresses for IP addressing and routing.
See type IPNet and func ParseCIDR for details.
-
arrayOfIPNet
Concrete Type v1.0An IPNet represents an IP network.
-
arrayOfInterface
Concrete Type v1.0Interface represents a mapping between network interface name
and index. It also represents network interface facility
information.
-
arrayOfInvalidAddrError
Concrete Type v1.0 -
arrayOfListenConfig
Concrete Type v1.0ListenConfig contains options for listening to an address.
-
arrayOfListener
Concrete Type v1.0A Listener is a generic network listener for stream-oriented protocols.
Multiple goroutines may invoke methods on a Listener simultaneously.
-
arrayOfMX
Concrete Type v1.0An MX represents a single DNS MX record.
-
arrayOfNS
Concrete Type v1.0An NS represents a single DNS NS record.
-
arrayOfOpError
Concrete Type v1.0OpError is the error type usually returned by functions in the net
package. It describes the operation, network type, and address of
an error.
-
arrayOfPacketConn
Concrete Type v1.0PacketConn is a generic packet-oriented network connection.
Multiple goroutines may invoke methods on a PacketConn simultaneously.
-
arrayOfParseError
Concrete Type v1.0A ParseError is the error type of literal network address parsers.
-
arrayOfResolver
Concrete Type v1.0A Resolver looks up names and numbers.
A nil *Resolver is equivalent to a zero Resolver.
-
arrayOfSRV
Concrete Type v1.0An SRV represents a single DNS SRV record.
-
arrayOfTCPAddr
Concrete Type v1.0TCPAddr represents the address of a TCP end point.
-
arrayOfTCPConn
Concrete Type v1.0TCPConn is an implementation of the Conn interface for TCP network
connections.
-
arrayOfTCPListener
Concrete Type v1.0TCPListener is a TCP network listener. Clients should typically
use variables of type Listener instead of assuming TCP.
-
arrayOfUDPAddr
Concrete Type v1.0UDPAddr represents the address of a UDP end point.
-
arrayOfUDPConn
Concrete Type v1.0UDPConn is the implementation of the Conn and PacketConn interfaces
for UDP network connections.
-
arrayOfUnixAddr
Concrete Type v1.0UnixAddr represents the address of a Unix domain socket end point.
-
arrayOfUnixConn
Concrete Type v1.0UnixConn is an implementation of the Conn interface for connections
to Unix domain sockets.
-
arrayOfUnixListener
Concrete Type v1.0UnixListener is a Unix domain socket listener. Clients should
typically use variables of type Listener instead of assuming Unix
domain sockets.
-
arrayOfUnknownNetworkError
Concrete Type v1.0