Skip to content

Commit

Permalink
windows: add missing TCP and UDP socket options and control message t…
Browse files Browse the repository at this point in the history
…ypes

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 <alex.brainman@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
  • Loading branch information
database64128 authored and prattmic committed Oct 6, 2023
1 parent 2964e1e commit 6ee6208
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion windows/types_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +1094,33 @@ const (

SOMAXCONN = 0x7fffffff

TCP_NODELAY = 1
TCP_NODELAY = 1
TCP_EXPEDITED_1122 = 2
TCP_KEEPALIVE = 3
TCP_MAXSEG = 4
TCP_MAXRT = 5
TCP_STDURG = 6
TCP_NOURG = 7
TCP_ATMARK = 8
TCP_NOSYNRETRIES = 9
TCP_TIMESTAMPS = 10
TCP_OFFLOAD_PREFERENCE = 11
TCP_CONGESTION_ALGORITHM = 12
TCP_DELAY_FIN_ACK = 13
TCP_MAXRTMS = 14
TCP_FASTOPEN = 15
TCP_KEEPCNT = 16
TCP_KEEPIDLE = TCP_KEEPALIVE
TCP_KEEPINTVL = 17
TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18
TCP_ICMP_ERROR_INFO = 19

UDP_NOCHECKSUM = 1
UDP_SEND_MSG_SIZE = 2
UDP_RECV_MAX_COALESCED_SIZE = 3
UDP_CHECKSUM_COVERAGE = 20

UDP_COALESCED_INFO = 3

SHUT_RD = 0
SHUT_WR = 1
Expand Down

0 comments on commit 6ee6208

Please sign in to comment.