Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for WSAIoctl (0.12 sec)

  1. src/internal/poll/sockopt_windows.go

    package poll
    
    import "syscall"
    
    // WSAIoctl wraps the WSAIoctl network call.
    func (fd *FD) WSAIoctl(iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *syscall.Overlapped, completionRoutine uintptr) error {
    	if err := fd.incref(); err != nil {
    		return err
    	}
    	defer fd.decref()
    	return syscall.WSAIoctl(fd.Sysfd, iocc, inbuf, cbif, outbuf, cbob, cbbr, overlapped, completionRoutine)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 19:09:46 UTC 2023
    - 586 bytes
    - Viewed (0)
  2. src/net/tcpsockopt_windows.go

    		Time:     tcpKeepAliveIdle,
    		Interval: tcpKeepAliveInterval,
    	}
    	ret := uint32(0)
    	size := uint32(unsafe.Sizeof(ka))
    	err := fd.pfd.WSAIoctl(syscall.SIO_KEEPALIVE_VALS, (*byte)(unsafe.Pointer(&ka)), size, nil, 0, &ret, nil, 0)
    	runtime.KeepAlive(fd)
    	return os.NewSyscallError("wsaioctl", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:35 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/internal/poll/fd_windows_test.go

    	}
    	defer syscall.CloseHandle(ov.HEvent)
    
    	if err = fd.WSAIoctl(
    		SIO_TCP_INFO,
    		(*byte)(unsafe.Pointer(&inbuf)),
    		uint32(unsafe.Sizeof(inbuf)),
    		(*byte)(unsafe.Pointer(&outbuf)),
    		uint32(unsafe.Sizeof(outbuf)),
    		&cbbr,
    		&ov,
    		0,
    	); err != nil && !errors.Is(err, syscall.ERROR_IO_PENDING) {
    		t.Fatalf("could not perform the WSAIoctl: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 14 08:33:36 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/net/fd_windows.go

    			params.MaxSynRetransmissions = windows.TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS
    		}
    		var out uint32
    		// Don't abort the connection if WSAIoctl fails, as it is only an optimization.
    		// If it fails reliably, we expect TestDialClosedPortFailFast to detect it.
    		_ = fd.pfd.WSAIoctl(windows.SIO_TCP_INITIAL_RTO, (*byte)(unsafe.Pointer(&params)), uint32(unsafe.Sizeof(params)), nil, 0, &out, nil, 0)
    	}
    
    	// Call ConnectEx API.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 16:46:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  5. src/internal/syscall/windows/syscall_windows.go

    		if sendRecvMsgFunc.err != nil {
    			return
    		}
    		defer syscall.CloseHandle(s)
    		var n uint32
    		sendRecvMsgFunc.err = syscall.WSAIoctl(s,
    			syscall.SIO_GET_EXTENSION_FUNCTION_POINTER,
    			(*byte)(unsafe.Pointer(&WSAID_WSARECVMSG)),
    			uint32(unsafe.Sizeof(WSAID_WSARECVMSG)),
    			(*byte)(unsafe.Pointer(&sendRecvMsgFunc.recvAddr)),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/windows/syscall_windows.go

    //sys	WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
    //sys	WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 22:18:42 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  7. src/syscall/syscall_windows.go

    //sys	WSACleanup() (err error) [failretval==socket_error] = ws2_32.WSACleanup
    //sys	WSAIoctl(s Handle, iocc uint32, inbuf *byte, cbif uint32, outbuf *byte, cbob uint32, cbbr *uint32, overlapped *Overlapped, completionRoutine uintptr) (err error) [failretval==socket_error] = ws2_32.WSAIoctl
    //sys	socket(af int32, typ int32, protocol int32) (handle Handle, err error) [failretval==InvalidHandle] = ws2_32.socket
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 52.7K bytes
    - Viewed (0)
  8. src/internal/poll/fd_windows.go

    	switch net {
    	case "udp", "udp4", "udp6":
    		ret := uint32(0)
    		flag := uint32(0)
    		size := uint32(unsafe.Sizeof(flag))
    		err := syscall.WSAIoctl(fd.Sysfd, syscall.SIO_UDP_CONNRESET, (*byte)(unsafe.Pointer(&flag)), size, nil, 0, &ret, nil, 0)
    		if err != nil {
    			return "wsaioctl", err
    		}
    	}
    	fd.rop.mode = 'r'
    	fd.wop.mode = 'w'
    	fd.rop.fd = fd
    	fd.wop.fd = fd
    	fd.rop.runtimeCtx = fd.pd.runtimeCtx
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_windows.go

    	procWSACleanup                         = modws2_32.NewProc("WSACleanup")
    	procWSAEnumProtocolsW                  = modws2_32.NewProc("WSAEnumProtocolsW")
    	procWSAIoctl                           = modws2_32.NewProc("WSAIoctl")
    	procWSARecv                            = modws2_32.NewProc("WSARecv")
    	procWSARecvFrom                        = modws2_32.NewProc("WSARecvFrom")
    	procWSASend                            = modws2_32.NewProc("WSASend")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/windows/zsyscall_windows.go

    	procWSAGetOverlappedResult                               = modws2_32.NewProc("WSAGetOverlappedResult")
    	procWSAIoctl                                             = modws2_32.NewProc("WSAIoctl")
    	procWSALookupServiceBeginW                               = modws2_32.NewProc("WSALookupServiceBeginW")
    	procWSALookupServiceEnd                                  = modws2_32.NewProc("WSALookupServiceEnd")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 195.8K bytes
    - Viewed (0)
Back to top