Deprecated recvLine and added an improved version named readLine to the

sockets module.
This commit is contained in:
Dominik Picheta 2013-03-23 20:13:11 +00:00
commit 5267984985
3 changed files with 127 additions and 5 deletions

View file

@ -26,7 +26,7 @@ proc swarmConnect(s: PAsyncSocket) =
proc serverRead(s: PAsyncSocket) =
var line = ""
assert s.recvLine(line)
assert s.readLine(line)
if line != "":
#echo(line)
if line.startsWith("Message "):