- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for opxrrr (0.18 sec)
-
src/net/error_test.go
c.Close() t.Fatalf("%s succeeded, want error", op) } if perr := parseDialError(err); perr != nil { t.Fatal(perr) } operr := err.(*OpError).Err aerr, ok := operr.(*AddrError) if !ok { t.Fatalf("OpError.Err is %T, want *AddrError", operr) } want := tt.lit if tt.lit == "" { want = tt.addr.IP.String() } if aerr.Addr != want {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 20.3K bytes - Viewed (0) -
src/net/net_test.go
} return nil, nil }) defer sw.Set(socktest.FilterAccept, nil) operr := make(chan error, 1) handler := func(ls *localServer, ln Listener) { defer close(operr) c, err := ln.Accept() if err != nil { if perr := parseAcceptError(err); perr != nil { operr <- perr } operr <- err return } c.Close() } ls := newLocalServer(t, "tcp")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 21:04:44 UTC 2024 - 13.3K bytes - Viewed (0) -
src/net/unixsock.go
if err != nil { err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } return n, addr, err } // ReadFrom implements the [PacketConn] ReadFrom method. func (c *UnixConn) ReadFrom(b []byte) (int, Addr, error) { if !c.ok() { return 0, nil, syscall.EINVAL } n, addr, err := c.readFrom(b) if err != nil {
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/udpsock.go
if err != nil { err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } return } // WriteToUDP acts like WriteTo but takes a UDPAddr. func (c *UDPConn) WriteToUDP(b []byte, addr *UDPAddr) (int, error) { if !c.ok() { return 0, syscall.EINVAL } n, err := c.writeTo(b, addr) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 16:58:25 UTC 2023 - 11.8K bytes - Viewed (0) -
src/net/tcpsock.go
if err != nil && err != io.EOF { err = &OpError{Op: "readfrom", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } return n, err } // WriteTo implements the io.WriterTo WriteTo method. func (c *TCPConn) WriteTo(w io.Writer) (int64, error) { if !c.ok() { return 0, syscall.EINVAL } n, err := c.writeTo(w) if err != nil && err != io.EOF {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 03:10:07 UTC 2024 - 13.7K bytes - Viewed (0) -
src/net/http/socks_bundle.go
} // DialContext connects to the provided address on the provided // network. // // The returned error value may be a net.OpError. When the Op field of // net.OpError contains "socks", the Source field contains a proxy // server address and the Addr field contains a command target // address. // // See func Dial of the net package of standard library for a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 22:42:18 UTC 2023 - 12.9K bytes - Viewed (0) -
src/net/net.go
if err != nil && err != io.EOF { err = &OpError{Op: "read", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err} } return n, err } // Write implements the Conn Write method. func (c *conn) Write(b []byte) (int, error) { if !c.ok() { return 0, syscall.EINVAL } n, err := c.fd.Write(b) if err != nil {
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/dial.go
case *UnixAddr: la, _ := la.(*UnixAddr) c, err = sd.dialUnix(ctx, la, ra) default: return nil, &OpError{Op: "dial", Net: sd.network, Source: la, Addr: ra, Err: &AddrError{Err: "unexpected address type", Addr: sd.address}} } if err != nil { return nil, &OpError{Op: "dial", Net: sd.network, Source: la, Addr: ra, Err: err} // c is non-nil interface containing nil pointer } return c, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 26.9K bytes - Viewed (0) -
src/net/net_windows_test.go
"io" "os" "os/exec" "regexp" "slices" "strings" "syscall" "testing" "time" ) func toErrno(err error) (syscall.Errno, bool) { operr, ok := err.(*OpError) if !ok { return 0, false } syserr, ok := operr.Err.(*os.SyscallError) if !ok { return 0, false } errno, ok := syserr.Err.(syscall.Errno) if !ok { return 0, false } return errno, true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.3K bytes - Viewed (0) -
src/net/unixsock_test.go
if _, err := c.(*UnixConn).WriteToUnix(b, raddr); err == nil { t.Fatal("should fail") } else if err.(*OpError).Err != ErrWriteToConnected { t.Fatalf("should fail as ErrWriteToConnected: %v", err) } if _, err = c.(*UnixConn).WriteTo(b, raddr); err == nil { t.Fatal("should fail") } else if err.(*OpError).Err != ErrWriteToConnected { t.Fatalf("should fail as ErrWriteToConnected: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 10.6K bytes - Viewed (0)