Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abursavich/nett
/ functions
Functions
72 in github.com/abursavich/nett
⨍
Functions
72
◇
Types & classes
18
↓ 5 callers
Method
Len
()
dial.go:241
↓ 5 callers
Function
resolveAddrList
(resolver Resolver, filter ipFilter, network, address string)
resolve.go:105
↓ 3 callers
Method
Addr
(i int)
dial.go:242
↓ 3 callers
Function
dtoi
Decimal to integer starting at &s[i0]. Returns number, new offset, success.
parse.go:121
↓ 3 callers
Function
probe
(filename, query string)
ipsock_plan9.go:9
↓ 3 callers
Method
teardown
()
mockserver_test.go:52
↓ 2 callers
Method
Dial
Dial connects to the address on the named network. Known networks are "tcp", "tcp4" (IPv4-only), "tcp6" (IPv6-only), "udp", "udp4" (IPv4-only), "udp6
dial.go:109
↓ 2 callers
Method
Resolve
Resolve looks up the given host and returns its IP addresses.
resolve.go:29
↓ 2 callers
Function
byteIndex
(s string, c byte)
parse.go:73
↓ 2 callers
Function
closesocket
(s int)
fd_unix.go:11
↓ 2 callers
Method
getLineFromData
()
parse.go:23
↓ 2 callers
Function
last
Index of rightmost occurrence of b in s.
parse.go:163
↓ 2 callers
Function
parseIPv4
parseIPv4 parses s as an IPv4 address.
resolve.go:253
↓ 2 callers
Method
readLine
()
parse.go:47
↓ 2 callers
Function
splitHostZone
(s string)
resolve.go:391
↓ 2 callers
Method
teardownNetwork
(net string)
mockserver_test.go:40
↓ 1 callers
Method
Resolve
Resolve returns a host's IP addresses.
resolve.go:64
↓ 1 callers
Method
buildup
(server func(*dualStackServer, net.Listener))
mockserver_test.go:26
↓ 1 callers
Method
close
()
parse.go:21
↓ 1 callers
Function
countAnyByte
Count occurrences in s of any bytes in t.
parse.go:83
↓ 1 callers
Method
deadline
Return either now+Timeout or Deadline, whichever comes first. Or zero, if neither is set.
dial.go:70
↓ 1 callers
Function
dialMulti
dialMulti attempts to establish connections to each destination of the list of addresses. It will return the first established connection and close th
dial.go:158
↓ 1 callers
Function
filterIPs
filterIPs returns the non-nil results of filter applied to ips. It is processed in-place: the contents of ips is not preserved and the result is slice
resolve.go:405
↓ 1 callers
Function
getFields
(s string)
parse.go:114
↓ 1 callers
Function
ipToSockaddr
(family int, ip net.IP, port int, zone string)
ipsock_posix.go:76
↓ 1 callers
Function
isDomainName
(s string)
resolve.go:416
↓ 1 callers
Method
netDialer
(deadline time.Time)
dial_go1.go:14
↓ 1 callers
Function
newDualStackServer
(lns []streamListener)
mockserver_test.go:68
↓ 1 callers
Function
open
(name string)
parse.go:65
↓ 1 callers
Function
parseHostPort
(network, address string)
resolve.go:215
↓ 1 callers
Function
parseIPv6
parseIPv6 parses s as a literal IPv6 address described in RFC 4291 and RFC 5952. It can also parse a literal scoped IPv6 address with zone identifier
resolve.go:287
↓ 1 callers
Function
parseNetwork
(network string)
resolve.go:189
↓ 1 callers
Function
parsePort
parsePort parses port as a network service port number for both TCP and UDP.
resolve.go:237
↓ 1 callers
Function
probeIPv4Stack
()
ipsock_posix.go:16
↓ 1 callers
Function
probeIPv6Stack
Should we try to use the IPv4 socket interface if we're only dealing with IPv4 sockets? As long as the host system understands IPv6, it's okay to pas
ipsock_posix.go:40
↓ 1 callers
Function
resolveAddrsDeadline
(resolver Resolver, filter ipFilter, network, address string, deadline time.Time)
dial.go:126
↓ 1 callers
Function
resolveInternetAddrList
(resolver Resolver, filter ipFilter, network, address string)
resolve.go:120
↓ 1 callers
Function
splitAtBytes
Split s at any bytes in t.
parse.go:94
↓ 1 callers
Function
tcpSockaddr
(a net.TCPAddr, family int)
ipsock_posix.go:72
↓ 1 callers
Function
xtoi
Hexadecimal to integer starting at &s[i0]. Returns number, new offset, success.
parse.go:137
↓ 1 callers
Function
zoneToInt
(zone string)
ipsock_posix.go:115
Method
Addr
(i int)
dial.go:251
Method
Addr
(i int)
dial.go:254
Method
Addr
(i int)
dial.go:257
Method
Addr
(i int)
dial.go:260
Function
DualStack
DualStack selects the first IPv4 address and IPv6 address in ips.
dial.go:217
Method
Error
()
dial.go:264
Function
Example
()
example_test.go:16
Method
Len
()
dial.go:250
Method
Len
()
dial.go:253
Method
Len
()
dial.go:256
Method
Len
()
dial.go:259
Method
Resolve
Resolve looks up the given host using the local resolver. It returns an array of that host's IPv4 and IPv6 addresses.
resolve.go:40
Method
Temporary
()
dial.go:266
Function
TestCacheResolver
(t *testing.T)
resolve_test.go:126
Function
TestDialHTTP
(t *testing.T)
dial_test.go:16
Function
TestDialMulti
(t *testing.T)
dial_test.go:38
Function
TestResolveIP
(t *testing.T)
resolve_test.go:101
Function
TestResolveTCP
(t *testing.T)
resolve_test.go:51
Function
TestResolveUDP
(t *testing.T)
resolve_test.go:76
Method
Timeout
()
dial.go:265
Function
closesocket
(s syscall.Handle)
fd_windows.go:9
Function
defaultIP
defaultIP gives priority to IPv4 addresses and selects the first address.
dial.go:197
Function
init
()
resolve_test.go:24
Function
init
()
ipsock.go:26
Function
ipv4only
ipv4only returns IPv4 addresses that we can use with the kernel's IPv4 addressing modes. If ip is an IPv4 address, ipv4only returns ip. Otherwise it r
resolve.go:467
Function
ipv6only
ipv6only returns IPv6 addresses that we can use with the kernel's IPv6 addressing modes. It returns IPv4-mapped IPv6 addresses as nils and returns ot
resolve.go:477
Method
netDialer
(deadline time.Time)
dial_go1_3.go:14
Function
probeIPv4Stack
()
ipsock_plan9.go:33
Function
probeIPv6Stack
probeIPv6Stack returns two boolean values. If the first boolean value is true, kernel supports basic IPv6 functionality. If the second boolean value
ipsock_plan9.go:40
Method
putConn
(c net.Conn)
mockserver_test.go:33
Function
supportedIP
supportedIP returns a version of the IP that the platform supports. If it is not supported it returns nil.
ipsock.go:33