asyncnet.nim: Minor code cleanup

This commit is contained in:
Araq 2019-02-15 14:44:27 +01:00
commit 315d438677

View file

@ -112,7 +112,7 @@ when defineSsl:
type type
# TODO: I would prefer to just do: # TODO: I would prefer to just do:
# AsyncSocket* {.borrow: `.`.} = distinct Socket. But that doesn't work. # AsyncSocket* {.borrow: `.`.} = distinct Socket. But that doesn't work.
AsyncSocketDesc = object AsyncSocketDesc = object
fd: SocketHandle fd: SocketHandle
closed: bool ## determines whether this socket has been closed closed: bool ## determines whether this socket has been closed
case isBuffered: bool ## determines whether this socket is buffered. case isBuffered: bool ## determines whether this socket is buffered.