make some tests green
This commit is contained in:
parent
3af5c99336
commit
5a9637f2f3
1 changed files with 3 additions and 1 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# Nimrod's Runtime Library
|
# Nimrod's Runtime Library
|
||||||
# (c) Copyright 2012 Andreas Rumpf
|
# (c) Copyright 2013 Andreas Rumpf
|
||||||
#
|
#
|
||||||
# See the file "copying.txt", included in this
|
# See the file "copying.txt", included in this
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
|
|
@ -1274,6 +1274,7 @@ proc recv*(socket: TSocket): TaintedString {.tags: [FReadIO], deprecated.} =
|
||||||
add(result.string, buf)
|
add(result.string, buf)
|
||||||
if bytesRead != bufSize-1: break
|
if bytesRead != bufSize-1: break
|
||||||
|
|
||||||
|
{.push warning[deprecated]: off.}
|
||||||
proc recvTimeout*(socket: TSocket, timeout: int): TaintedString {.
|
proc recvTimeout*(socket: TSocket, timeout: int): TaintedString {.
|
||||||
tags: [FReadIO], deprecated.} =
|
tags: [FReadIO], deprecated.} =
|
||||||
## overloaded variant to support a ``timeout`` parameter, the ``timeout``
|
## overloaded variant to support a ``timeout`` parameter, the ``timeout``
|
||||||
|
|
@ -1287,6 +1288,7 @@ proc recvTimeout*(socket: TSocket, timeout: int): TaintedString {.
|
||||||
raise newException(ETimeout, "Call to recv() timed out.")
|
raise newException(ETimeout, "Call to recv() timed out.")
|
||||||
|
|
||||||
return socket.recv
|
return socket.recv
|
||||||
|
{.pop.}
|
||||||
|
|
||||||
proc recvAsync*(socket: TSocket, s: var TaintedString): bool {.
|
proc recvAsync*(socket: TSocket, s: var TaintedString): bool {.
|
||||||
tags: [FReadIO], deprecated.} =
|
tags: [FReadIO], deprecated.} =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue