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:
parent
b753edec1d
commit
229d83f6c6
4 changed files with 30 additions and 27 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue