From 6f155af802bec7dc1b4b8ff31e0135dd6692a93c Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Fri, 12 Sep 2014 22:54:02 +0100 Subject: Lots of documentation improvements for asyncdispatch. Ref #1487. --- lib/pure/asyncftpclient.nim | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/pure/asyncftpclient.nim') diff --git a/lib/pure/asyncftpclient.nim b/lib/pure/asyncftpclient.nim index c5a97adfc..fc38dc31a 100644 --- a/lib/pure/asyncftpclient.nim +++ b/lib/pure/asyncftpclient.nim @@ -6,6 +6,24 @@ # distribution, for details about the copyright. # +## This module implement an asynchronous FTP client. +## +## Examples +## -------- +## +## .. code-block::nim +## +## var ftp = newAsyncFtpClient("example.com", user = "test", pass = "test") +## proc main(ftp: AsyncFtpClient) {.async.} = +## await ftp.connect() +## echo await ftp.pwd() +## echo await ftp.listDirs() +## await ftp.store("payload.jpg", "payload.jpg") +## await ftp.retrFile("payload.jpg", "payload2.jpg") +## echo("Finished") +## +## waitFor main(ftp) + import asyncdispatch, asyncnet, strutils, parseutils, os, times from ftpclient import FtpBaseObj, ReplyError, FtpEvent -- cgit 1.4.1-2-gfad0 vel&id=ad3c10022afa3047a9bee73967c0d319541745b4'>refs log blame commit diff stats
path: root/tests/dll/nimhcr_2.nim
blob: e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 (plain) (tree)
 
.nim?h=devel&id=dbf9117c562601d6b571d964a6cb152e95fe8c4e'>dbf9117c5 ^
1
2
3
4
5
6
7
8
9
10
11