- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for unixgram (0.33 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/net/unixsock_test.go
t.Fatalf("got %v; want %v", b[:n], data[:]) } } func TestUnixgramZeroBytePayload(t *testing.T) { if !testableNetwork("unixgram") { t.Skip("unixgram test") } c1 := newLocalPacketListener(t, "unixgram") defer os.Remove(c1.LocalAddr().String()) defer c1.Close() c2, err := Dial("unixgram", c1.LocalAddr().String()) if err != nil { t.Fatal(err) } defer os.Remove(c2.LocalAddr().String()) defer c2.Close()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 10.6K 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/unixsock.go
// BUG(mikio): On Windows, methods and functions related to UnixConn // and UnixListener don't work for "unixgram" and "unixpacket". // UnixAddr represents the address of a Unix domain socket end point. type UnixAddr struct { Name string Net string } // Network returns the address's network name, "unix", "unixgram" or // "unixpacket". func (a *UnixAddr) Network() string { return a.Net }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 10.1K 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/net/server_test.go
{saddr: "@nettest/go/unixgram/server", caddr: "@nettest/go/unixgram/client"}, } for i, tt := range unixgramServerTests { i, tt := i, tt t.Run(fmt.Sprint(i), func(t *testing.T) { if !testableListenArgs("unixgram", tt.saddr, "") { t.Skipf("skipping unixgram %s<-%s test", tt.saddr, tt.caddr) } t.Logf("unixgram %s<-%s", tt.saddr, tt.caddr)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 11.7K 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)