Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for GetsockoptInt (0.37 sec)

  1. src/syscall/syscall_aix.go

    	msg.Namelen = uint32(SizeofSockaddrAny)
    	var iov Iovec
    	if len(p) > 0 {
    		iov.Base = &p[0]
    		iov.SetLen(len(p))
    	}
    	var dummy byte
    	if len(oob) > 0 {
    		var sockType int
    		sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
    		if err != nil {
    			return
    		}
    		// receive at least one normal byte
    		if sockType != SOCK_DGRAM && len(p) == 0 {
    			iov.Base = &dummy
    			iov.SetLen(1)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:50:55 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  2. src/syscall/syscall_linux.go

    	var iov Iovec
    	if len(p) > 0 {
    		iov.Base = &p[0]
    		iov.SetLen(len(p))
    	}
    	var dummy byte
    	if len(oob) > 0 {
    		if len(p) == 0 {
    			var sockType int
    			sockType, err = GetsockoptInt(fd, SOL_SOCKET, SO_TYPE)
    			if err != nil {
    				return
    			}
    			// receive at least one normal byte
    			if sockType != SOCK_DGRAM {
    				iov.Base = &dummy
    				iov.SetLen(1)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:12:46 UTC 2024
    - 35.7K bytes
    - Viewed (0)
  3. internal/http/dial_linux.go

    			fd := int(fdPtr)
    
    			_ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_REUSEADDR, 1)
    
    			_ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_REUSEPORT, 1)
    
    			// Enable custom socket send/recv buffers.
    			if opts.SendBufSize > 0 {
    				_ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_SNDBUF, opts.SendBufSize)
    			}
    
    			if opts.RecvBufSize > 0 {
    				_ = unix.SetsockoptInt(fd, unix.SOL_SOCKET, unix.SO_RCVBUF, opts.RecvBufSize)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 4.8K bytes
    - Viewed (3)
  4. src/cmd/trace/testdata/go122.test

    	data="runtime.(*wakeableSleep).sleep"
    String id=128
    	data="runtime.traceStartReadCPU.func1"
    String id=129
    	data="syscall.setsockopt"
    String id=130
    	data="syscall.SetsockoptInt"
    String id=131
    	data="internal/poll.(*FD).SetsockoptInt"
    String id=132
    	data="/usr/local/google/home/mknyszek/work/go-1/src/internal/poll/sockopt.go"
    String id=133
    	data="net.setKeepAlivePeriod"
    String id=134
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 17:15:58 UTC 2024
    - 166K bytes
    - Viewed (0)
  5. src/net/ipsock_posix.go

    		probes = probes[:1]
    	}
    	for i := range probes {
    		s, err := sysSocket(syscall.AF_INET6, syscall.SOCK_STREAM, syscall.IPPROTO_TCP)
    		if err != nil {
    			continue
    		}
    		defer poll.CloseFunc(s)
    		syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, probes[i].value)
    		sa, err := probes[i].laddr.sockaddr(syscall.AF_INET6)
    		if err != nil {
    			continue
    		}
    		if err := syscall.Bind(s, sa); err != nil {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top