github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/syscall/windows/net_windows.go (about) 1 // Copyright 2021 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package windows 6 7 import ( 8 "github.com/shogo82148/std/syscall" 9 ) 10 11 //go:linkname WSASendtoInet4 syscall.wsaSendtoInet4 12 //go:noescape 13 func WSASendtoInet4(s syscall.Handle, bufs *syscall.WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *syscall.SockaddrInet4, overlapped *syscall.Overlapped, croutine *byte) (err error) 14 15 //go:linkname WSASendtoInet6 syscall.wsaSendtoInet6 16 //go:noescape 17 func WSASendtoInet6(s syscall.Handle, bufs *syscall.WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *syscall.SockaddrInet6, overlapped *syscall.Overlapped, croutine *byte) (err error) 18 19 const ( 20 SIO_TCP_INITIAL_RTO = syscall.IOC_IN | syscall.IOC_VENDOR | 17 21 TCP_INITIAL_RTO_UNSPECIFIED_RTT = ^uint16(0) 22 TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS = ^uint8(1) 23 ) 24 25 type TCP_INITIAL_RTO_PARAMETERS struct { 26 Rtt uint16 27 MaxSynRetransmissions uint8 28 }