Fixed tasyncawait on Windows.

Implicit registration of an fd now only occurs when a new socket is
created (in socket() or accept()). This makes the implementation much
simpler, changes to the linux version will follow.
This commit is contained in:
Dominik Picheta
2014-03-12 20:42:36 +00:00
parent 15919b7c98
commit d97a397139
3 changed files with 34 additions and 11 deletions

View File

@@ -456,6 +456,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
proc `==`*(x, y: TSocketHandle): bool {.borrow.}