Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 607 for adir (0.04 sec)

  1. internal/handlers/proxy.go

    	raddr, _, _ := net.SplitHostPort(addr)
    	if raddr == "" {
    		return addr
    	}
    	return raddr
    }
    
    // GetSourceIP retrieves the IP from the request headers
    // and falls back to r.RemoteAddr when necessary.
    func GetSourceIP(r *http.Request) string {
    	addr := GetSourceIPRaw(r)
    	if strings.ContainsRune(addr, ':') {
    		return "[" + addr + "]"
    	}
    	return addr
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Dec 22 00:56:55 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. src/fmt/gostringer_example_test.go

    	Name string
    	Age  uint
    	Addr *Address
    }
    
    // GoString makes Person satisfy the GoStringer interface.
    // The return value is valid Go code that can be used to reproduce the Person struct.
    func (p Person) GoString() string {
    	if p.Addr != nil {
    		return fmt.Sprintf("Person{Name: %q, Age: %d, Addr: &Address{City: %q, State: %q, Country: %q}}", p.Name, int(p.Age), p.Addr.City, p.Addr.State, p.Addr.Country)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 06 04:25:17 UTC 2018
    - 1.5K bytes
    - Viewed (0)
  3. src/runtime/msan0.go

    const msanenabled = false
    
    // Because msanenabled is false, none of these functions should be called.
    
    func msanread(addr unsafe.Pointer, sz uintptr)     { throw("msan") }
    func msanwrite(addr unsafe.Pointer, sz uintptr)    { throw("msan") }
    func msanmalloc(addr unsafe.Pointer, sz uintptr)   { throw("msan") }
    func msanfree(addr unsafe.Pointer, sz uintptr)     { throw("msan") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 725 bytes
    - Viewed (0)
  4. 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)
  5. src/runtime/cgo_mmap.go

    		systemstack(func() {
    			ret = callCgoMmap(addr, n, prot, flags, fd, off)
    		})
    		if ret < 4096 {
    			return nil, int(ret)
    		}
    		return unsafe.Pointer(ret), 0
    	}
    	return sysMmap(addr, n, prot, flags, fd, off)
    }
    
    func munmap(addr unsafe.Pointer, n uintptr) {
    	if _cgo_munmap != nil {
    		systemstack(func() { callCgoMunmap(addr, n) })
    		return
    	}
    	sysMunmap(addr, n)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 20:58:13 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. src/runtime/sys_openbsd2.go

    	KeepAlive(addr) // Just for consistency. Hopefully addr is not a Go address.
    	return args.ret1, args.ret2
    }
    func mmap_trampoline()
    
    //go:nosplit
    //go:cgo_unsafe_args
    func munmap(addr unsafe.Pointer, n uintptr) {
    	libcCall(unsafe.Pointer(abi.FuncPCABI0(munmap_trampoline)), unsafe.Pointer(&addr))
    	KeepAlive(addr) // Just for consistency. Hopefully addr is not a Go address.
    }
    func munmap_trampoline()
    
    //go:nosplit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. src/net/udpsock_plan9.go

    	n := copy(b, buf)
    	ip, _ := netip.AddrFromSlice(h.raddr)
    	addr := netip.AddrPortFrom(ip, h.rport)
    	return n, addr, nil
    }
    
    func (c *UDPConn) readMsg(b, oob []byte) (n, oobn, flags int, addr netip.AddrPort, err error) {
    	return 0, 0, 0, netip.AddrPort{}, syscall.EPLAN9
    }
    
    func (c *UDPConn) writeTo(b []byte, addr *UDPAddr) (int, error) {
    	if addr == nil {
    		return 0, errMissingAddress
    	}
    	h := new(udpHeader)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 02 18:35:35 UTC 2021
    - 4.6K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/x86/asm_test.go

    	instinit(&ctxt)
    
    	regAddr := func(reg int16) *obj.Addr {
    		return &obj.Addr{Type: obj.TYPE_REG, Reg: reg}
    	}
    	immAddr := func(v int64) *obj.Addr {
    		return &obj.Addr{Type: obj.TYPE_CONST, Offset: v}
    	}
    	regListAddr := func(regFrom, regTo int16) *obj.Addr {
    		return &obj.Addr{Type: obj.TYPE_REGLIST, Offset: EncodeRegisterRange(regFrom, regTo)}
    	}
    	memAddr := func(base, index int16) *obj.Addr {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 28 19:39:51 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  9. src/runtime/cgo/gcc_stack_unix.c

    	pthread_attr_getstack(&attr, &addr, &size); // low address
    #elif defined(__illumos__)
    	pthread_attr_get_np(pthread_self(), &attr);
    	pthread_attr_getstack(&attr, &addr, &size); // low address
    #else
    	// We don't know how to get the current stacks, so assume they are the
    	// same as the default stack bounds.
    	pthread_attr_getstacksize(&attr, &size);
    	addr = __builtin_frame_address(0) + 4096 - size;
    #endif
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 03:44:11 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. pkg/proxy/ipvs/netlink_linux.go

    	if err != nil {
    		return false, fmt.Errorf("error get interface: %s, err: %v", devName, err)
    	}
    	addr := netutils.ParseIPSloppy(address)
    	if addr == nil {
    		return false, fmt.Errorf("error parse ip address: %s", address)
    	}
    	if err := h.AddrAdd(dev, &netlink.Addr{IPNet: netlink.NewIPNet(addr)}); err != nil {
    		// "EEXIST" will be returned if the address is already bound to device
    		if err == unix.EEXIST {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 30 16:18:49 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top