Better param passing. Implemented send, readLine and support for

documentation stubs.
This commit is contained in:
Dominik Picheta 2013-07-21 13:58:54 +01:00
commit d15e67e020
2 changed files with 100 additions and 45 deletions

View file

@ -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.} =