fixes for asynchttpserver
This commit is contained in:
parent
455c3c19ca
commit
fe387888bd
3 changed files with 15 additions and 8 deletions
|
|
@ -92,6 +92,7 @@ proc recv*(socket: PAsyncSocket, size: int,
|
|||
proc send*(socket: PAsyncSocket, data: string): PFuture[void] =
|
||||
## Sends ``data`` to ``socket``. The returned future will complete once all
|
||||
## data has been sent.
|
||||
assert socket != nil
|
||||
result = send(socket.fd.TAsyncFD, data)
|
||||
|
||||
proc acceptAddr*(socket: PAsyncSocket):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue