Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for setNoDelay (0.31 sec)

  1. src/net/tcpsockopt_posix.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix || windows
    
    package net
    
    import (
    	"runtime"
    	"syscall"
    )
    
    func setNoDelay(fd *netFD, noDelay bool) error {
    	err := fd.pfd.SetsockoptInt(syscall.IPPROTO_TCP, syscall.TCP_NODELAY, boolint(noDelay))
    	runtime.KeepAlive(fd)
    	return wrapSyscallError("setsockopt", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 442 bytes
    - Viewed (0)
  2. src/net/tcpsockopt_plan9.go

    // license that can be found in the LICENSE file.
    
    // TCP socket options for plan9
    
    package net
    
    import (
    	"internal/itoa"
    	"syscall"
    	"time"
    )
    
    func setNoDelay(_ *netFD, _ bool) error {
    	return syscall.EPLAN9
    }
    
    // Set keep alive period.
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 762 bytes
    - Viewed (0)
  3. src/net/tcpsockopt_stub.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build js || wasip1
    
    package net
    
    import (
    	"syscall"
    	"time"
    )
    
    func setNoDelay(fd *netFD, noDelay bool) error {
    	return syscall.ENOPROTOOPT
    }
    
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	return syscall.ENOPROTOOPT
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 570 bytes
    - Viewed (0)
  4. src/net/tcpsock.go

    	}
    	return nil
    }
    
    // SetNoDelay controls whether the operating system should delay
    // packet transmission in hopes of sending fewer packets (Nagle's
    // algorithm).  The default is true (no delay), meaning that data is
    // sent as soon as possible after a Write.
    func (c *TCPConn) SetNoDelay(noDelay bool) error {
    	if !c.ok() {
    		return syscall.EINVAL
    	}
    	if err := setNoDelay(c.fd, noDelay); err != 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)
  5. src/net/protoconn_test.go

    		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)
  6. src/cmd/trace/testdata/go122.test

    String id=167
    	data="net.listenerBacklog"
    String id=168
    	data="syscall.Listen"
    String id=169
    	data="sync.(*WaitGroup).Wait"
    String id=170
    	data="runtime.gopark"
    String id=171
    	data="net.setNoDelay"
    String id=172
    	data="/usr/local/google/home/mknyszek/work/go-1/src/net/tcpsockopt_posix.go"
    String id=173
    	data="os.(*File).read"
    String id=174
    	data="os.(*File).Read"
    String id=175
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 166K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*TCPConn).SetDeadline", Method, 0},
    		{"(*TCPConn).SetKeepAlive", Method, 0},
    		{"(*TCPConn).SetKeepAlivePeriod", Method, 2},
    		{"(*TCPConn).SetLinger", Method, 0},
    		{"(*TCPConn).SetNoDelay", Method, 0},
    		{"(*TCPConn).SetReadBuffer", Method, 0},
    		{"(*TCPConn).SetReadDeadline", Method, 0},
    		{"(*TCPConn).SetWriteBuffer", Method, 0},
    		{"(*TCPConn).SetWriteDeadline", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg net, method (*TCPConn) SetDeadline(time.Time) error
    pkg net, method (*TCPConn) SetKeepAlive(bool) error
    pkg net, method (*TCPConn) SetLinger(int) error
    pkg net, method (*TCPConn) SetNoDelay(bool) error
    pkg net, method (*TCPConn) SetReadBuffer(int) error
    pkg net, method (*TCPConn) SetReadDeadline(time.Time) error
    pkg net, method (*TCPConn) SetWriteBuffer(int) error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top