Better param passing. Implemented send, readLine and support for
documentation stubs.
This commit is contained in:
parent
84ea209fe1
commit
d15e67e020
2 changed files with 100 additions and 45 deletions
|
|
@ -2,7 +2,11 @@ import sockets, asyncio, strutils
|
|||
proc processRequest(client: PAsyncSocket, test: string) {.async.} =
|
||||
assert test == "ahha"
|
||||
assert client != nil
|
||||
echo(test)
|
||||
echo("Test = ", test)
|
||||
let line = await(readLine(client))
|
||||
echo("Read: ", line)
|
||||
|
||||
await send(client, "Goodbye.\c\L")
|
||||
client.close()
|
||||
|
||||
proc processServer() {.async.} =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue