Skip to content

Commit 6ee6208

Browse files
database64128prattmic
authored andcommitted
windows: add missing TCP and UDP socket options and control message types
Source: ws2ipdef.h Change-Id: Ie9c6e2cec839a09b7e59239f1d5b50664a310f1d GitHub-Last-Rev: 14b9169 GitHub-Pull-Request: #173 Reviewed-on: https://go-review.googlesource.com/c/sys/+/525256 Reviewed-by: Alex Brainman <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Alex Brainman <[email protected]> Reviewed-by: Michael Pratt <[email protected]>
1 parent 2964e1e commit 6ee6208

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

Diff for: windows/types_windows.go

+27-1
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,33 @@ const (
10941094

10951095
SOMAXCONN = 0x7fffffff
10961096

1097-
TCP_NODELAY = 1
1097+
TCP_NODELAY = 1
1098+
TCP_EXPEDITED_1122 = 2
1099+
TCP_KEEPALIVE = 3
1100+
TCP_MAXSEG = 4
1101+
TCP_MAXRT = 5
1102+
TCP_STDURG = 6
1103+
TCP_NOURG = 7
1104+
TCP_ATMARK = 8
1105+
TCP_NOSYNRETRIES = 9
1106+
TCP_TIMESTAMPS = 10
1107+
TCP_OFFLOAD_PREFERENCE = 11
1108+
TCP_CONGESTION_ALGORITHM = 12
1109+
TCP_DELAY_FIN_ACK = 13
1110+
TCP_MAXRTMS = 14
1111+
TCP_FASTOPEN = 15
1112+
TCP_KEEPCNT = 16
1113+
TCP_KEEPIDLE = TCP_KEEPALIVE
1114+
TCP_KEEPINTVL = 17
1115+
TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18
1116+
TCP_ICMP_ERROR_INFO = 19
1117+
1118+
UDP_NOCHECKSUM = 1
1119+
UDP_SEND_MSG_SIZE = 2
1120+
UDP_RECV_MAX_COALESCED_SIZE = 3
1121+
UDP_CHECKSUM_COVERAGE = 20
1122+
1123+
UDP_COALESCED_INFO = 3
10981124

10991125
SHUT_RD = 0
11001126
SHUT_WR = 1

0 commit comments

Comments
 (0)