Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for eaddr (0.13 sec)

  1. src/cmd/internal/objfile/elf.go

    			addr = s.Value
    		} else if s.Name == end {
    			eaddr = s.Value
    		}
    		if addr != 0 && eaddr != 0 {
    			break
    		}
    	}
    	if addr == 0 || eaddr < addr {
    		return nil
    	}
    	size := eaddr - addr
    	data := make([]byte, size)
    	for _, prog := range f.elf.Progs {
    		if prog.Vaddr <= addr && addr+size-1 <= prog.Vaddr+prog.Filesz-1 {
    			if _, err := prog.ReadAt(data, int64(addr-prog.Vaddr)); err != nil {
    				return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 20:44:50 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/net/udpsock_plan9.go

    	h.laddr = c.fd.laddr.(*UDPAddr).IP.To16()
    	h.ifcaddr = IPv6zero // ignored (receive only)
    	h.rport = uint16(addr.Port)
    	h.lport = uint16(c.fd.laddr.(*UDPAddr).Port)
    
    	buf := make([]byte, udpHeaderSize+len(b))
    	i := copy(buf, h.Bytes())
    	copy(buf[i:], b)
    	if _, err := c.fd.Write(buf); err != nil {
    		return 0, err
    	}
    	return len(b), nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 18:35:35 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  3. src/net/udpsock_posix.go

    		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))}
    		}
    	}
    	if err != nil {
    		// No sockaddr, so don't return UDPAddr.
    		addr = nil
    	}
    	return n, addr, err
    }
    
    func (c *UDPConn) readFromAddrPort(b []byte) (n int, addr netip.AddrPort, err error) {
    	var ip netip.Addr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. src/net/tcpsock_posix.go

    }
    
    func (sd *sysDialer) dialTCP(ctx context.Context, laddr, raddr *TCPAddr) (*TCPConn, error) {
    	if h := sd.testHookDialTCP; h != nil {
    		return h(ctx, sd.network, laddr, raddr)
    	}
    	if h := testHookDialTCP; h != nil {
    		return h(ctx, sd.network, laddr, raddr)
    	}
    	return sd.doDialTCP(ctx, laddr, raddr)
    }
    
    func (sd *sysDialer) doDialTCP(ctx context.Context, laddr, raddr *TCPAddr) (*TCPConn, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. src/net/tcpsock_windows.go

    		}
    	} else if err := setKeepAliveIdleAndInterval(c.fd, config.Idle, config.Interval); err != nil {
    		return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	if err := setKeepAliveCount(c.fd, config.Count); err != nil {
    		return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/net/tcpsock_plan9.go

    }
    
    func (sd *sysDialer) dialTCP(ctx context.Context, laddr, raddr *TCPAddr) (*TCPConn, error) {
    	if h := sd.testHookDialTCP; h != nil {
    		return h(ctx, sd.network, laddr, raddr)
    	}
    	if h := testHookDialTCP; h != nil {
    		return h(ctx, sd.network, laddr, raddr)
    	}
    	return sd.doDialTCP(ctx, laddr, raddr)
    }
    
    func (sd *sysDialer) doDialTCP(ctx context.Context, laddr, raddr *TCPAddr) (*TCPConn, error) {
    	switch sd.network {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/net/tcpsock_unix.go

    		return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	if err := setKeepAliveIdle(c.fd, config.Idle); err != nil {
    		return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    	if err := setKeepAliveInterval(c.fd, config.Interval); err != nil {
    		return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. src/net/unixsock_posix.go

    		sotype = syscall.SOCK_SEQPACKET
    	default:
    		return nil, UnknownNetworkError(net)
    	}
    
    	switch mode {
    	case "dial":
    		if laddr != nil && laddr.isWildcard() {
    			laddr = nil
    		}
    		if raddr != nil && raddr.isWildcard() {
    			raddr = nil
    		}
    		if raddr == nil && (sotype != syscall.SOCK_DGRAM || laddr == nil) {
    			return nil, errMissingAddress
    		}
    	case "listen":
    	default:
    		return nil, errors.New("unknown mode: " + mode)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:54:32 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. src/net/tcpsock_solaris.go

    		}
    		if err := setKeepAliveCount(c.fd, config.Count); err != nil {
    			return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    		}
    	} else if err := setKeepAliveIdleAndIntervalAndCount(c.fd, config.Idle, config.Interval, config.Count); err != nil {
    		return &OpError{Op: "set", Net: c.fd.net, Source: c.fd.laddr, Addr: c.fd.raddr, Err: err}
    	}
    
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 03:10:07 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. src/net/unixsock_windows_test.go

    	if !windows.SupportUnixSocket() {
    		t.Skip("unix test")
    	}
    	handler := func(ls *localServer, ln Listener) {}
    	for _, laddr := range []string{"", testUnixAddr(t)} {
    		laddr := laddr
    		taddr := testUnixAddr(t)
    		ta, err := ResolveUnixAddr("unix", taddr)
    		if err != nil {
    			t.Fatal(err)
    		}
    		ln, err := ListenUnix("unix", ta)
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 17:24:57 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top