Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for pipereq (0.23 sec)

  1. src/net/http/httputil/persist.go

    func (sc *ServerConn) Write(req *http.Request, resp *http.Response) error {
    
    	// Retrieve the pipeline ID of this request/response pair
    	sc.mu.Lock()
    	id, ok := sc.pipereq[req]
    	delete(sc.pipereq, req)
    	if !ok {
    		sc.mu.Unlock()
    		return ErrPipeline
    	}
    	sc.mu.Unlock()
    
    	// Ensure pipeline order
    	sc.pipe.StartResponse(id)
    	defer sc.pipe.EndResponse(id)
    
    	sc.mu.Lock()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/internal/poll/sockoptip.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || windows
    
    package poll
    
    import "syscall"
    
    // SetsockoptIPMreq wraps the setsockopt network call with an IPMreq argument.
    func (fd *FD) SetsockoptIPMreq(level, name int, mreq *syscall.IPMreq) error {
    	if err := fd.incref(); err != nil {
    		return err
    	}
    	defer fd.decref()
    	return syscall.SetsockoptIPMreq(fd.Sysfd, level, name, mreq)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 817 bytes
    - Viewed (0)
  3. src/net/sockoptip_posix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || windows
    
    package net
    
    import (
    	"runtime"
    	"syscall"
    )
    
    func joinIPv4Group(fd *netFD, ifi *Interface, ip IP) error {
    	mreq := &syscall.IPMreq{Multiaddr: [4]byte{ip[0], ip[1], ip[2], ip[3]}}
    	if err := setIPv4MreqToInterface(mreq, ifi); err != nil {
    		return err
    	}
    	err := fd.pfd.SetsockoptIPMreq(syscall.IPPROTO_IP, syscall.IP_ADD_MEMBERSHIP, mreq)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  4. src/compress/zlib/writer_test.go

    	// Make dictionary, if given.
    	var dict []byte
    	if d != "" {
    		dict = []byte(d)
    	}
    
    	// Push data through a pipe that compresses at the write end, and decompresses at the read end.
    	piper, pipew := io.Pipe()
    	defer piper.Close()
    	go func() {
    		defer pipew.Close()
    		zlibw, err := NewWriterLevelDict(pipew, level, dict)
    		if err != nil {
    			t.Errorf("%s (level=%d, dict=%q): %v", fn, level, d, err)
    			return
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 5.7K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/ianlancetaylor/demangle/ast.go

    	}
    	if expr == nil && typeReq == nil {
    		return fn(er)
    	}
    	if expr == nil {
    		expr = er.Expr
    	}
    	if typeReq == nil {
    		typeReq = er.TypeReq
    	}
    	er = &ExprRequirement{Expr: expr, TypeReq: typeReq}
    	if r := fn(er); r != nil {
    		return r
    	}
    	return er
    }
    
    func (er *ExprRequirement) GoString() string {
    	return er.goString(0, "")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 105.8K bytes
    - Viewed (0)
  6. src/net/sockopt_posix.go

    				return v.IP, nil
    			}
    		case *IPNet:
    			if v.IP.To4() != nil {
    				return v.IP, nil
    			}
    		}
    	}
    	return nil, errNoSuchInterface
    }
    
    func setIPv4MreqToInterface(mreq *syscall.IPMreq, ifi *Interface) error {
    	if ifi == nil {
    		return nil
    	}
    	ifat, err := ifi.Addrs()
    	if err != nil {
    		return err
    	}
    	for _, ifa := range ifat {
    		switch v := ifa.(type) {
    		case *IPAddr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 15:06:47 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/syscall/syscall_linux.go

    		n += copy(buf[addr%sizeofPtr:], data)
    		word := *((*uintptr)(unsafe.Pointer(&buf[0])))
    		err = ptrace(pokeReq, pid, addr-addr%sizeofPtr, word)
    		if err != nil {
    			return 0, err
    		}
    		data = data[n:]
    	}
    
    	// Interior.
    	for len(data) > sizeofPtr {
    		word := *((*uintptr)(unsafe.Pointer(&data[0])))
    		err = ptrace(pokeReq, pid, addr+uintptr(n), word)
    		if err != nil {
    			return n, err
    		}
    		n += sizeofPtr
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  8. src/compress/lzw/writer_test.go

    	raw, err := os.Open(fn)
    	if err != nil {
    		t.Errorf("%s (order=%d litWidth=%d): %v", fn, order, litWidth, err)
    		return
    	}
    
    	piper, pipew := io.Pipe()
    	defer piper.Close()
    	go func() {
    		defer raw.Close()
    		defer pipew.Close()
    		lzww := NewWriter(pipew, order, litWidth)
    		defer lzww.Close()
    		var b [4096]byte
    		for {
    			n, err0 := raw.Read(b[:])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 12 11:00:47 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  9. src/syscall/types_aix.go

    type RawSockaddrAny C.struct_sockaddr_any
    
    type _Socklen C.socklen_t
    
    type Cmsghdr C.struct_cmsghdr
    
    type ICMPv6Filter C.struct_icmp6_filter
    
    type Iovec C.struct_iovec
    
    type IPMreq C.struct_ip_mreq
    
    type IPv6Mreq C.struct_ipv6_mreq
    
    type Linger C.struct_linger
    
    type Msghdr C.struct_msghdr
    
    const (
    	SizeofSockaddrInet4    = C.sizeof_struct_sockaddr_in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  10. src/syscall/types_solaris.go

    type RawSockaddr C.struct_sockaddr
    
    type RawSockaddrAny C.struct_sockaddr_any
    
    type _Socklen C.socklen_t
    
    type Linger C.struct_linger
    
    type Iovec C.struct_iovec
    
    type IPMreq C.struct_ip_mreq
    
    type IPv6Mreq C.struct_ipv6_mreq
    
    type Msghdr C.struct_msghdr
    
    type Cmsghdr C.struct_cmsghdr
    
    type Inet6Pktinfo C.struct_in6_pktinfo
    
    type IPv6MTUInfo C.struct_ip6_mtuinfo
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 4.9K bytes
    - Viewed (0)
Back to top