Fixed async send in ftpclient module.

This commit is contained in:
Dominik Picheta 2013-10-11 19:20:45 +01:00
commit 2555e500b6

View file

@ -129,7 +129,8 @@ proc expectReply(ftp: PFTPClient): TaintedString =
proc send*(ftp: PFTPClient, m: string): TaintedString = proc send*(ftp: PFTPClient, m: string): TaintedString =
## Send a message to the server, and wait for a primary reply. ## Send a message to the server, and wait for a primary reply.
## ``\c\L`` is added for you. ## ``\c\L`` is added for you.
ftp.getCSock().send(m & "\c\L") blockingOperation(ftp.getCSock()):
ftp.getCSock().send(m & "\c\L")
return ftp.expectReply() return ftp.expectReply()
proc assertReply(received: TaintedString, expected: string) = proc assertReply(received: TaintedString, expected: string) =