Skip to content

Commit 14b9169

Browse files
committed
windows: add missing TCP and UDP socket options and control message types
Source: ws2ipdef.h
1 parent 5154691 commit 14b9169

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
@@ -1093,7 +1093,33 @@ const (
10931093

10941094
SOMAXCONN = 0x7fffffff
10951095

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

10981124
SHUT_RD = 0
10991125
SHUT_WR = 1

0 commit comments

Comments
 (0)