Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for setLinger (0.42 sec)

  1. src/net/tcpsock.go

    // until all data has been sent or discarded.
    // On some operating systems after sec seconds have elapsed any remaining
    // unsent data may be discarded.
    func (c *TCPConn) SetLinger(sec int) error {
    	if !c.ok() {
    		return syscall.EINVAL
    	}
    	if err := setLinger(c.fd, sec); 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
    - 13.7K bytes
    - Viewed (0)
  2. src/net/net_fake.go

    func (ffd *fakeNetFD) setWriteBuffer(bytes int) error {
    	return os.NewSyscallError("setWriteBuffer", syscall.ENOTSUP)
    }
    
    func (ffd *fakeNetFD) setLinger(sec int) error {
    	if sec < 0 || ffd.peer == nil {
    		return os.NewSyscallError("setLinger", syscall.EINVAL)
    	}
    	ffd.peer.queue.setLinger(sec > 0)
    	return nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  3. src/fmt/print.go

    type Formatter interface {
    	Format(f State, verb rune)
    }
    
    // Stringer is implemented by any value that has a String method,
    // which defines the “native” format for that value.
    // The String method is used to print values passed as an operand
    // to any format that accepts a string or to an unformatted printer
    // such as [Print].
    type Stringer interface {
    	String() string
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:22:43 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  4. cmd/apierrorcode_string.go

    // Code generated by "stringer -type=APIErrorCode -trimprefix=Err api-errors.go"; DO NOT EDIT.
    
    package cmd
    
    import "strconv"
    
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[ErrNone-0]
    	_ = x[ErrAccessDenied-1]
    	_ = x[ErrBadDigest-2]
    	_ = x[ErrEntityTooSmall-3]
    	_ = x[ErrEntityTooLarge-4]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  5. Makefile

    	@echo "Installing msgp" && go install -v github.com/tinylib/msgp@v1.1.10-0.20240227114326-6d6f813fff1b
    	@echo "Installing stringer" && go install -v golang.org/x/tools/cmd/stringer@latest
    
    crosscompile: ## cross compile minio
    	@(env bash $(PWD)/buildscripts/cross-compile.sh)
    
    verifiers: lint check-gen
    
    check-gen: ## check for updated autogenerated files
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 17:41:02 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  6. src/cmd/vet/vet_test.go

    		cmd.Env = append(os.Environ(), "GOWORK=off")
    		cmd.Dir = "testdata/rangeloop"
    		cmd.Stderr = new(strings.Builder) // all vet output goes to stderr
    		cmd.Run()
    		stderr := cmd.Stderr.(fmt.Stringer).String()
    
    		filename := filepath.FromSlash("testdata/rangeloop/rangeloop.go")
    
    		// Unlike the tests above, which runs vet in cmd/vet/, this one
    		// runs it in subdirectory, so the "full names" in the output
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  7. src/html/template/js.go

    		switch t := a.(type) {
    		case JS:
    			return string(t)
    		case JSStr:
    			// TODO: normalize quotes.
    			return `"` + string(t) + `"`
    		case json.Marshaler:
    			// Do not treat as a Stringer.
    		case fmt.Stringer:
    			a = t.String()
    		}
    	} else {
    		for i, arg := range args {
    			args[i] = indirectToJSONMarshaler(arg)
    		}
    		a = fmt.Sprint(args...)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/context/context.go

    	go func() {
    		select {
    		case <-parent.Done():
    			child.cancel(false, parent.Err(), Cause(parent))
    		case <-child.Done():
    		}
    	}()
    }
    
    type stringer interface {
    	String() string
    }
    
    func contextName(c Context) string {
    	if s, ok := c.(stringer); ok {
    		return s.String()
    	}
    	return reflectlite.TypeOf(c).String()
    }
    
    func (c *cancelCtx) String() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 23.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    			return false
    		}
    	}
    	return true
    }
    
    // recursiveStringer reports whether the argument e is a potential
    // recursive call to stringer or is an error, such as t and &t in these examples:
    //
    //	func (t *T) String() string { printf("%s",  t) }
    //	func (t  T) Error() string { printf("%s",  t) }
    //	func (t  T) String() string { printf("%s", &t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  10. src/runtime/error.go

    			continue
    		}
    		i++
    		switch fmt[i] {
    		case 'x':
    			b = appendIntStr(b, e.x, e.signed)
    		case 'y':
    			b = appendIntStr(b, int64(e.y), true)
    		}
    	}
    	return string(b)
    }
    
    type stringer interface {
    	String() string
    }
    
    // printpanicval prints an argument passed to panic.
    // If panic is called with a value that has a String or Error method,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top