- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for getaddrinfo (0.15 sec)
-
src/net/rlimit_unix.go
// file descriptor so we limit this to less than the number of // permitted open files. On some systems, notably Darwin, if // getaddrinfo is unable to open a file descriptor it simply returns // EAI_NONAME rather than a useful error. Limiting the number of // concurrent getaddrinfo calls to less than the permitted number of // file descriptors makes that error less likely. We don't bother to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 1.1K bytes - Viewed (0) -
src/internal/syscall/unix/net_darwin.go
Addrlen uint32 Canonname *byte Addr *syscall.RawSockaddr Next *Addrinfo } //go:cgo_ldflag "-lresolv" //go:cgo_import_dynamic libc_getaddrinfo getaddrinfo "/usr/lib/libSystem.B.dylib" func libc_getaddrinfo_trampoline() func Getaddrinfo(hostname, servname *byte, hints *Addrinfo, res **Addrinfo) (int, error) { gerrno, _, errno := syscall_syscall6(abi.FuncPCABI0(libc_getaddrinfo_trampoline),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 13:41:21 UTC 2023 - 4.3K bytes - Viewed (0) -
src/net/cgo_linux.go
// arguments for and against including AI_ADDRCONFIG // in the flags (it includes IPv4 results only on IPv4 systems, // and similarly for IPv6), but in practice setting it causes // getaddrinfo to return the wrong canonical name on Linux. // So definitely leave it out.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 642 bytes - Viewed (0) -
src/net/cgo_unix_syscall.go
} func _C_gai_strerror(eai _C_int) string { return unix.GaiStrerror(int(eai)) } func _C_getaddrinfo(hostname, servname *byte, hints *_C_struct_addrinfo, res **_C_struct_addrinfo) (int, error) { return unix.Getaddrinfo(hostname, servname, hints, res) } func _C_res_ninit(state *_C_struct___res_state) error { unix.ResNinit(state) return nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 07 23:50:56 UTC 2024 - 3K bytes - Viewed (0) -
src/net/cgo_unix_cgo.go
func _C_gai_strerror(eai _C_int) string { return C.GoString(C.gai_strerror(eai)) } func _C_getaddrinfo(hostname, servname *_C_char, hints *_C_struct_addrinfo, res **_C_struct_addrinfo) (int, error) { x, err := C.getaddrinfo(hostname, servname, hints, res) return int(x), err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 15 17:49:28 UTC 2024 - 2.2K bytes - Viewed (0) -
src/net/cgo_unix.go
"unsafe" "golang.org/x/net/dns/dnsmessage" ) // cgoAvailable set to true to indicate that the cgo resolver // is available on this system. const cgoAvailable = true // An addrinfoErrno represents a getaddrinfo, getnameinfo-specific // error number. It's a signed number and a zero value is a non-error // by convention. type addrinfoErrno int func (eai addrinfoErrno) Error() string { return _C_gai_strerror(_C_int(eai)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Apr 14 18:23:45 UTC 2024 - 11.4K bytes - Viewed (0) -
src/net/net.go
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. On Unix the pure Go resolver is preferred over the cgo resolver, because a blocked DNS request consumes only a goroutine, while a blocked C call consumes an operating system thread.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 26.8K bytes - Viewed (0) -
src/net/conf.go
"io/fs" "os" "runtime" "sync" "syscall" ) // The net package's name resolution is rather complicated. // There are two main approaches, go and cgo. // The cgo resolver uses C functions like getaddrinfo. // The go resolver reads system files directly and // sends DNS packets directly to servers. // // The netgo build tag prefers the go resolver. // The netcgo build tag prefers the cgo resolver. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 18 03:13:26 UTC 2024 - 15.5K bytes - Viewed (0) -
src/cmd/dist/test.go
} } } // Doing a static link with boringcrypto gets // a C linker warning on Linux. // in function `bio_ip_and_port_to_socket_and_addr': // warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking if staticCheck.skip == nil && goos == "linux" && strings.Contains(goexperiment, "boringcrypto") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 16:01:35 UTC 2024 - 50K bytes - Viewed (0) -
pkg/config/xds/filter_types.gen.go
_ "github.com/envoyproxy/go-control-plane/envoy/extensions/network/dns_resolver/cares/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/network/dns_resolver/getaddrinfo/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/network/socket_interface/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/outlier_detection_monitors/common/v3"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jun 02 02:48:23 UTC 2024 - 26.9K bytes - Viewed (0)