Added a TSocketHandle type to winlean.nim and posix.nim

Edited sockets.nim and asyncio.nim to use the new TSocketHandle type.
This commit is contained in:
Clay Sweetser 2013-10-15 13:53:44 -04:00
commit 229d83f6c6
4 changed files with 30 additions and 27 deletions

View file

@ -81,6 +81,9 @@ else:
## A type representing a directory stream.
type
TSocketHandle* = cint # The type used to represent socket descripters
# Should this be distinct? Is this the right place?
Tdirent* {.importc: "struct dirent",
header: "<dirent.h>", final, pure.} = object ## dirent_t struct
d_ino*: TIno ## File serial number.