- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for unixgram (0.61 sec)
-
src/net/unixsock_linux_test.go
package net import ( "bytes" "reflect" "syscall" "testing" "time" ) func TestUnixgramAutobind(t *testing.T) { laddr := &UnixAddr{Name: "", Net: "unixgram"} c1, err := ListenUnixgram("unixgram", laddr) if err != nil { t.Fatal(err) } defer c1.Close() // retrieve the autobind address autoAddr := c1.LocalAddr().(*UnixAddr) if len(autoAddr.Name) <= 1 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 28 03:00:34 UTC 2017 - 2.3K bytes - Viewed (0) -
src/log/syslog/syslog_test.go
msg := "Test 123" for _, tr := range []string{"unix", "unixgram", "udp", "tcp"} { if !testableNetwork(tr) { continue } tr := tr t.Run(tr, func(t *testing.T) { t.Parallel() done := make(chan string) addr, sock, srvWG := startServer(t, tr, "", done) defer srvWG.Wait() defer sock.Close() if tr == "unix" || tr == "unixgram" { defer os.Remove(addr) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 12 16:09:24 UTC 2023 - 9.6K bytes - Viewed (0) -
src/net/packetconn_test.go
var packetConnTests = []struct { net string addr1 string addr2 string }{ {"udp", "127.0.0.1:0", "127.0.0.1:0"}, {"unixgram", testUnixAddr(t), testUnixAddr(t)}, } closer := func(c PacketConn, net, addr1, addr2 string) { c.Close() switch net { case "unixgram": os.Remove(addr1) os.Remove(addr2) } } for _, tt := range packetConnTests {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 3K bytes - Viewed (0) -
src/net/protoconn_test.go
} } func TestUnixConnSpecificMethods(t *testing.T) { if !testableNetwork("unixgram") { t.Skip("unixgram test") } addr1, addr2, addr3 := testUnixAddr(t), testUnixAddr(t), testUnixAddr(t) a1, err := ResolveUnixAddr("unixgram", addr1) if err != nil { t.Fatal(err) } c1, err := DialUnix("unixgram", a1, nil) if err != nil { t.Fatal(err) } defer c1.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 7.4K bytes - Viewed (0) -
src/vendor/golang.org/x/net/nettest/nettest.go
switch runtime.GOOS { case "fuchsia", "hurd", "js", "nacl", "plan9", "wasip1": return false default: if os.Getuid() != 0 { return false } } case "unix", "unixgram": switch runtime.GOOS { case "android", "fuchsia", "hurd", "ios", "js", "nacl", "plan9", "wasip1", "windows": return false case "aix": return unixStrmDgramEnabled() } case "unixpacket":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 8.5K bytes - Viewed (0) -
src/log/syslog/syslog_unix.go
import ( "errors" "net" ) // unixSyslog opens a connection to the syslog daemon running on the // local machine using a Unix domain socket. func unixSyslog() (conn serverConn, err error) { logTypes := []string{"unixgram", "unix"} logPaths := []string{"/dev/log", "/var/run/syslog", "/var/run/log"} for _, network := range logTypes { for _, path := range logPaths { conn, err := net.Dial(network, path) if err == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 758 bytes - Viewed (0) -
src/net/file_test.go
wg.Wait() if !reflect.DeepEqual(ln2.Addr(), addr) { t.Fatalf("got %#v; want %#v", ln2.Addr(), addr) } } } var filePacketConnTests = []struct { network string }{ {"udp"}, {"unixgram"}, } func TestFilePacketConn(t *testing.T) { switch runtime.GOOS { case "plan9", "windows", "js", "wasip1": t.Skipf("not supported on %s", runtime.GOOS) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 6.4K bytes - Viewed (0) -
src/net/unixsock_posix.go
var sotype int switch net { case "unix": sotype = syscall.SOCK_STREAM case "unixgram": sotype = syscall.SOCK_DGRAM case "unixpacket": sotype = syscall.SOCK_SEQPACKET default: return nil, UnknownNetworkError(net) } switch mode { case "dial":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 6.6K bytes - Viewed (0) -
src/net/platform_test.go
switch net { case "ip+nopriv": case "ip", "ip4", "ip6": switch runtime.GOOS { case "plan9": return false default: if os.Getuid() != 0 { return false } } case "unix", "unixgram": switch runtime.GOOS { case "android", "ios", "plan9", "windows": return false case "aix": return unixEnabledOnAIX } case "unixpacket": switch runtime.GOOS {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 4.3K bytes - Viewed (0) -
src/net/rawconn_unix_test.go
var operr error var fn func(uintptr) switch network { case "tcp", "udp", "ip": return errors.New("ambiguous network: " + network) case "unix", "unixpacket", "unixgram": fn = func(s uintptr) { _, operr = syscall.GetsockoptInt(int(s), syscall.SOL_SOCKET, syscall.SO_ERROR) } default: switch network[len(network)-1] { case '4': fn = func(s uintptr) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 3K bytes - Viewed (0)