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
  • Loading branch information
database64128 committed Sep 2, 2023
1 parent 5154691 commit 14b9169
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 @@ -1093,7 +1093,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 14b9169

Please sign in to comment.