- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 137 for setLinger (0.38 sec)
-
src/net/sockopt_fake.go
} return syscall.ENOPROTOOPT } func setKeepAlive(fd *netFD, keepalive bool) error { return syscall.ENOPROTOOPT } func setLinger(fd *netFD, sec int) error { if fd.fakeNetFD != nil { return fd.fakeNetFD.setLinger(sec) } return syscall.ENOPROTOOPT
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 955 bytes - Viewed (0) -
src/net/sockopt_plan9.go
package net import "syscall" func setKeepAlive(fd *netFD, keepalive bool) error { if keepalive { _, e := fd.ctl.WriteAt([]byte("keepalive"), 0) return e } return nil } func setLinger(fd *netFD, sec int) error { return syscall.EPLAN9
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 03 04:23:59 UTC 2016 - 406 bytes - Viewed (0) -
src/net/sockopt_posix.go
func setKeepAlive(fd *netFD, keepalive bool) error { err := fd.pfd.SetsockoptInt(syscall.SOL_SOCKET, syscall.SO_KEEPALIVE, boolint(keepalive)) runtime.KeepAlive(fd) return wrapSyscallError("setsockopt", err) } func setLinger(fd *netFD, sec int) error { var l syscall.Linger if sec >= 0 { l.Onoff = 1 l.Linger = int32(sec) } else { l.Onoff = 0 l.Linger = 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 15:06:47 UTC 2023 - 2.1K bytes - Viewed (0) -
pkg/test/echo/server/endpoint/util.go
func forceClose(conn net.Conn) error { // Close may be called more than once. defer func() { _ = conn.Close() }() // Force the connection closed (should result in sending RST) return conn.(*net.TCPConn).SetLinger(0)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 2.6K bytes - Viewed (0) -
src/net/protoconn_test.go
if err != nil { t.Fatal(err) } c, err := DialTCP("tcp4", nil, ra) if err != nil { t.Fatal(err) } defer c.Close() c.SetKeepAlive(false) c.SetKeepAlivePeriod(3 * time.Second) c.SetLinger(0) c.SetNoDelay(false) c.LocalAddr() c.RemoteAddr() c.SetDeadline(time.Now().Add(someTimeout)) c.SetReadDeadline(time.Now().Add(someTimeout)) c.SetWriteDeadline(time.Now().Add(someTimeout))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 18 17:20:52 UTC 2023 - 7.4K bytes - Viewed (0) -
test/typeparam/stringer.go
// Test method calls on type parameters package main import ( "fmt" "reflect" "strconv" ) // Simple constraint type Stringer interface { String() string } func stringify[T Stringer](s []T) (ret []string) { for _, v := range s { ret = append(ret, v.String()) } return ret } type myint int func (i myint) String() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.6K bytes - Viewed (0) -
src/cmd/internal/obj/stringer.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. //go:build ignore // This is a mini version of the stringer tool customized for the Anames table // in the architecture support for obj. // This version just generates the slice of strings, not the String method. package main import ( "bufio" "flag" "fmt" "log" "os"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:27 UTC 2023 - 2.2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/handlers/trace_util.go
return []attribute.KeyValue{ attribute.Stringer("accept", &lazyAccept{req: req}), attribute.Stringer("audit-id", &lazyAuditID{req: req}), attribute.Stringer("client", &lazyClientIP{req: req}), attribute.Stringer("api-group", &lazyAPIGroup{req: req}), attribute.Stringer("api-version", &lazyAPIVersion{req: req}), attribute.Stringer("name", &lazyName{req: req}), attribute.Stringer("subresource", &lazySubresource{req: req}),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Sep 03 15:25:35 UTC 2023 - 1.5K bytes - Viewed (0) -
test/fixedbugs/issue65808.go
// license that can be found in the LICENSE file.package main package main type Stringer interface { String() string } type ( stringer struct{} stringers [2]stringer foo struct { stringers } ) func (stringer) String() string { return "" } func toString(s Stringer) string { return s.String() } func (v stringers) toStrings() []string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 02 14:01:52 UTC 2024 - 562 bytes - Viewed (0) -
test/switch7.go
switch e.(type) { case int: case int: // ERROR "duplicate case int in type switch" case int64: case error: case error: // ERROR "duplicate case error in type switch" case fmt.Stringer: case fmt.Stringer: // ERROR "duplicate case fmt.Stringer in type switch" case struct { i int "tag1" }: case struct { i int "tag2" }: case struct { // ERROR "duplicate case struct { i int .tag1. } in type switch|duplicate case"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 14 21:28:48 UTC 2020 - 796 bytes - Viewed (0)