Fixed recvLine deprecation warnings.
This commit is contained in:
parent
43499b9f07
commit
e3d097c4e9
6 changed files with 72 additions and 80 deletions
|
|
@ -126,7 +126,7 @@ type
|
|||
|
||||
handleTask*: proc (s: PAsyncSocket) {.closure.}
|
||||
|
||||
lineBuffer: TaintedString ## Temporary storage for ``recvLine``
|
||||
lineBuffer: TaintedString ## Temporary storage for ``readLine``
|
||||
sendBuffer: string ## Temporary storage for ``send``
|
||||
sslNeedAccept: bool
|
||||
proto: TProtocol
|
||||
|
|
@ -635,7 +635,7 @@ when isMainModule:
|
|||
proc testRead(s: PAsyncSocket, no: int) =
|
||||
echo("Reading! " & $no)
|
||||
var data = ""
|
||||
if not s.recvLine(data):
|
||||
if not s.readLine(data):
|
||||
OSError()
|
||||
if data == "":
|
||||
echo("Closing connection. " & $no)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue