Some small cleanup.
This commit is contained in:
parent
03cbf689a1
commit
62e1b3e2e3
2 changed files with 7 additions and 8 deletions
|
|
@ -69,13 +69,13 @@ type
|
|||
# TODO: I would prefer to just do:
|
||||
# AsyncSocket* {.borrow: `.`.} = distinct Socket. But that doesn't work.
|
||||
AsyncSocketDesc = object
|
||||
fd*: SocketHandle
|
||||
fd: SocketHandle
|
||||
closed: bool ## determines whether this socket has been closed
|
||||
case isBuffered: bool ## determines whether this socket is buffered.
|
||||
of true:
|
||||
buffer: array[0..BufferSize, char]
|
||||
currPos: int # current index in buffer
|
||||
bufLen*: int # current length of buffer
|
||||
bufLen: int # current length of buffer
|
||||
of false: nil
|
||||
case isSsl: bool
|
||||
of true:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue