- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for SupportUnixSocket (0.32 sec)
-
src/internal/syscall/windows/version_windows_test.go
var d syscall.WSAData if err := syscall.WSAStartup(uint32(0x202), &d); err != nil { t.Fatal(err) } defer syscall.WSACleanup() // Test that SupportUnixSocket returns true if WSASocket succeeds with AF_UNIX. got := windows.SupportUnixSocket() s, err := windows.WSASocket(syscall.AF_UNIX, syscall.SOCK_STREAM, 0, nil, 0, windows.WSA_FLAG_NO_HANDLE_INHERIT) if err == nil { syscall.Closesocket(s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:24:57 UTC 2024 - 874 bytes - Viewed (0) -
src/net/unixsock_windows_test.go
//go:build windows package net import ( "internal/syscall/windows" "os" "reflect" "testing" ) func TestUnixConnLocalWindows(t *testing.T) { if !windows.SupportUnixSocket() { t.Skip("unix test") } handler := func(ls *localServer, ln Listener) {} for _, laddr := range []string{"", testUnixAddr(t)} { laddr := laddr taddr := testUnixAddr(t)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:24:57 UTC 2024 - 1.8K bytes - Viewed (0) -
src/internal/syscall/windows/version_windows.go
major, _, build := version() return major >= 10 && build >= 16299 }) // SupportUnixSocket indicates whether the current Windows version supports // Unix Domain Sockets. // The minimal requirement is Windows 10.0.17063. var SupportUnixSocket = sync.OnceValue(func() bool { var size uint32 // First call to get the required buffer size in bytes.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 11:49:46 UTC 2024 - 3.6K bytes - Viewed (0)