Deprecated recvLine and added an improved version named readLine to the
sockets module.
This commit is contained in:
parent
b76ee0d9e1
commit
5267984985
3 changed files with 127 additions and 5 deletions
|
|
@ -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 "):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue