Ftpclient now fully works both synchronously and asynchronously.

Fixed some deprecation doc messages. And some issues with asyncio.
This commit is contained in:
Dominik Picheta 2012-09-22 16:39:51 +01:00
commit 6c6f9e6674
3 changed files with 190 additions and 164 deletions

View file

@ -533,7 +533,7 @@ proc accept*(server: TSocket, client: var TSocket) =
proc acceptAddr*(server: TSocket): tuple[client: TSocket, address: string] {.deprecated.} =
## Slightly different version of ``acceptAddr``.
##
## **Warning**: This function is now deprecated, you shouldn't use it!
## **Deprecated since version 0.9.0:** Please use the function above.
var client: TSocket
new(client)
var address = ""
@ -541,7 +541,7 @@ proc acceptAddr*(server: TSocket): tuple[client: TSocket, address: string] {.dep
return (client, address)
proc accept*(server: TSocket): TSocket {.deprecated.} =
## **Warning**: This function is now deprecated, you shouldn't use it!
## **Deprecated since version 0.9.0:** Please use the function above.
new(result)
var address = ""
acceptAddr(server, result, address)