Add TCP_NODELAY support #6795

This commit is contained in:
Federico Ceratto 2017-11-24 22:34:29 +00:00
commit 83de3a85e7
2 changed files with 14 additions and 1 deletions

View file

@ -541,6 +541,7 @@ var
SO_DONTLINGER* {.importc, header: "winsock2.h".}: cint
SO_EXCLUSIVEADDRUSE* {.importc, header: "winsock2.h".}: cint # disallow local address reuse
SO_ERROR* {.importc, header: "winsock2.h".}: cint
TCP_NODELAY* {.importc, header: "winsock2.h".}: cint
proc `==`*(x, y: SocketHandle): bool {.borrow.}