- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for ReadFromInet6 (0.23 sec)
-
src/net/fd_posix.go
n, err = fd.pfd.ReadFromInet4(p, from) runtime.KeepAlive(fd) return n, wrapSyscallError(readFromSyscallName, err) } func (fd *netFD) readFromInet6(p []byte, from *syscall.SockaddrInet6) (n int, err error) { n, err = fd.pfd.ReadFromInet6(p, from) runtime.KeepAlive(fd) return n, wrapSyscallError(readFromSyscallName, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 29 16:24:51 UTC 2022 - 4.3K bytes - Viewed (0) -
src/net/udpsock_posix.go
ip := from.Addr // copy from.Addr; ip escapes, so this line allocates 4 bytes *addr = UDPAddr{IP: ip[:], Port: from.Port} } case syscall.AF_INET6: var from syscall.SockaddrInet6 n, err = c.fd.readFromInet6(b, &from) if err == nil { ip := from.Addr // copy from.Addr; ip escapes, so this line allocates 16 bytes *addr = UDPAddr{IP: ip[:], Port: from.Port, Zone: zoneCache.name(int(from.ZoneId))} } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:54:32 UTC 2024 - 7.5K bytes - Viewed (0) -
src/net/net_fake.go
}) return n, err } func (ffd *fakeNetFD) readFromInet6(p []byte, sa *syscall.SockaddrInet6) (n int, err error) { n, _, err = ffd.queue.recvfrom(ffd.readDeadline.Load(), p, true, func(from sockaddr) error { fromSA, err := from.sockaddr(syscall.AF_INET6) if err != nil { return err } if fromSA == nil { return os.NewSyscallError("readFromInet6", syscall.EINVAL) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 19:24:21 UTC 2024 - 26.4K bytes - Viewed (0) -
src/internal/poll/fd_unix.go
if err = fd.pd.waitRead(fd.isFile); err == nil { continue } } } err = fd.eofError(n, err) return n, err } } // ReadFromInet6 wraps the recvfrom network call for IPv6. func (fd *FD) ReadFromInet6(p []byte, from *syscall.SockaddrInet6) (int, error) { if err := fd.readLock(); err != nil { return 0, err } defer fd.readUnlock()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 04:09:44 UTC 2024 - 17.9K bytes - Viewed (0) -
src/internal/poll/fd_windows.go
}) err = fd.eofError(n, err) if err != nil { return n, err } rawToSockaddrInet4(o.rsa, sa4) return n, err } // ReadFromInet6 wraps the recvfrom network call for IPv6. func (fd *FD) ReadFromInet6(buf []byte, sa6 *syscall.SockaddrInet6) (int, error) { if len(buf) == 0 { return 0, nil } if len(buf) > maxRW { buf = buf[:maxRW] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 31 16:50:42 UTC 2024 - 34.1K bytes - Viewed (0)