...
1
2
3
4
5 package windows
6
7 import (
8 "syscall"
9 _ "unsafe"
10 )
11
12
13
14 func WSASendtoInet4(s syscall.Handle, bufs *syscall.WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *syscall.SockaddrInet4, overlapped *syscall.Overlapped, croutine *byte) (err error)
15
16
17
18 func WSASendtoInet6(s syscall.Handle, bufs *syscall.WSABuf, bufcnt uint32, sent *uint32, flags uint32, to *syscall.SockaddrInet6, overlapped *syscall.Overlapped, croutine *byte) (err error)
19
20 const (
21 SIO_TCP_INITIAL_RTO = syscall.IOC_IN | syscall.IOC_VENDOR | 17
22 TCP_INITIAL_RTO_UNSPECIFIED_RTT = ^uint16(0)
23 TCP_INITIAL_RTO_NO_SYN_RETRANSMISSIONS = ^uint8(1)
24 )
25
26 type TCP_INITIAL_RTO_PARAMETERS struct {
27 Rtt uint16
28 MaxSynRetransmissions uint8
29 }
30
View as plain text