Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,655 for net (0.02 sec)

  1. src/net/ipsock_plan9.go

    	if err != nil {
    		f.Close()
    		return nil, &OpError{Op: "announce", Net: net, Source: laddr, Addr: nil, Err: err}
    	}
    	laddr, err = readPlan9Addr(net, netdir+"/"+proto+"/"+name+"/local")
    	if err != nil {
    		f.Close()
    		return nil, err
    	}
    	return newFD(proto, name, nil, f, nil, laddr, nil)
    }
    
    func (fd *netFD) netFD() (*netFD, error) {
    	return newFD(fd.net, fd.n, fd.listen, fd.ctl, fd.data, fd.laddr, fd.raddr)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 20:38:53 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/mod_std_vendor.txt

    cd $GOROOT/src
    go list -test -f '{{range .Deps}}{{.}}{{"\n"}}{{end}}' net/http
    ! stdout ^golang.org/x/net/http2/hpack
    stdout ^vendor/golang.org/x/net/http2/hpack
    
    -- go.mod --
    module m
    
    -- x.go --
    package x
    
    -- x_test.go --
    package x
    import "testing"
    import _ "net/http"
    func Test(t *testing.T) {}
    
    -- broken/go.mod --
    module broken
    -- broken/http.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 22 16:11:33 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/util/net/util_test.go

    limitations under the License.
    */
    
    package net
    
    import (
    	"fmt"
    	"io"
    	"net"
    	"net/http"
    	"net/http/httptest"
    	"net/url"
    	"os"
    	"sync/atomic"
    	"syscall"
    	"testing"
    	"time"
    
    	"golang.org/x/net/http2"
    
    	netutils "k8s.io/utils/net"
    )
    
    func getIPNet(cidr string) *net.IPNet {
    	_, ipnet, _ := netutils.ParseCIDRSloppy(cidr)
    	return ipnet
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 20 19:02:55 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/syscall/bpf_bsd.go

    import (
    	"unsafe"
    )
    
    // Deprecated: Use golang.org/x/net/bpf instead.
    func BpfStmt(code, k int) *BpfInsn {
    	return &BpfInsn{Code: uint16(code), K: uint32(k)}
    }
    
    // Deprecated: Use golang.org/x/net/bpf instead.
    func BpfJump(code, k, jt, jf int) *BpfInsn {
    	return &BpfInsn{Code: uint16(code), Jt: uint8(jt), Jf: uint8(jf), K: uint32(k)}
    }
    
    // Deprecated: Use golang.org/x/net/bpf instead.
    func BpfBuflen(fd int) (int, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 10:34:48 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/net/file_wasip1_test.go

    // support this approach for UDP sockets. Instead, we test the internals that
    // make it possible for WASI host runtimes and guest programs to integrate
    // socket extensions with the net package using net.FileConn/net.FileListener.
    //
    // Note that the creation of net.Conn and net.Listener values for TCP sockets
    // has an end-to-end test in src/runtime/internal/wasitest, here we are only
    // verifying the code paths specific to UDP, and error handling for invalid use
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:06:56 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. src/net/iprawsock.go

    //
    // The packages golang.org/x/net/ipv4 and golang.org/x/net/ipv6 can be
    // used to manipulate IP-level socket options in oob.
    func (c *IPConn) ReadMsgIP(b, oob []byte) (n, oobn, flags int, addr *IPAddr, err error) {
    	if !c.ok() {
    		return 0, 0, 0, nil, syscall.EINVAL
    	}
    	n, oobn, flags, addr, err = c.readMsg(b, oob)
    	if err != nil {
    		err = &OpError{Op: "read", 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: Wed Jan 10 03:29:50 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_graph_version.txt

    // that module is lower under Go 1.17 semantics than under Go 1.16.
    module example.com/m
    
    go 1.17
    
    replace (
    	example.net/lazy v0.1.0 => ./lazy
    	example.net/requireincompatible v0.1.0 => ./requireincompatible
    )
    
    require (
    	example.com/retract/incompatible v1.0.0 // indirect
    	example.net/lazy v0.1.0
    )
    -- lazy/go.mod --
    // Module lazy requires example.com/retract/incompatible v1.0.0.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 10 21:10:42 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

      @Test fun overflowMaxCodePoint() {
        assertNull(Punycode.decode("xn--a-b.net"))
        assertNull(Punycode.decode("xn--a-9b.net"))
        assertEquals("a՚.net", Punycode.decode("xn--a-99b.net"))
        assertEquals("a溠.net", Punycode.decode("xn--a-999b.net"))
        assertEquals("a\uD8E2\uDF5C.net", Punycode.decode("xn--a-9999b.net"))
        assertNull(Punycode.decode("xn--a-99999b.net"))
      }
    
      @Test fun dashInPrefix() {
        testEncodeDecode(
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. pkg/registry/core/service/ipallocator/interfaces.go

    import (
    	"errors"
    	"fmt"
    	"net"
    
    	api "k8s.io/kubernetes/pkg/apis/core"
    )
    
    // Interface manages the allocation of IP addresses out of a range. Interface
    // should be threadsafe.
    type Interface interface {
    	Allocate(net.IP) error
    	AllocateNext() (net.IP, error)
    	Release(net.IP) error
    	ForEach(func(net.IP))
    	CIDR() net.IPNet
    	IPFamily() api.IPFamily
    	Has(ip net.IP) bool
    	Destroy()
    	EnableMetrics()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/install_move_not_stale.txt

    # even when it's been moved to a different directory.
    # Simulate that by creating a symlink to the tree.
    
    # We use net instead of std because stale std has
    # the behavior of checking that all std targets
    # are stale rather than any of them.
    
    [!symlink] skip
    [short] skip
    
    go build net
    ! stale net
    
    symlink new -> $GOROOT
    env OLDGOROOT=$GOROOT
    env GOROOT=$WORK${/}gopath${/}src${/}new
    go env GOROOT
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:51:12 UTC 2022
    - 625 bytes
    - Viewed (0)
Back to top