aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ftp/doc/src/ftp_client.xml
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-03-09 13:30:40 +0100
committerPéter Dimitrov <[email protected]>2018-03-28 10:19:38 +0200
commit99dada0ab68e663b26e24e2363c4613c36aa717f (patch)
tree80615bef0b359135df505d85ceae0aa753cc3336 /lib/ftp/doc/src/ftp_client.xml
parent347a39468180c1410cedaee465821cfb10c2fcd7 (diff)
downloadotp-99dada0ab68e663b26e24e2363c4613c36aa717f.tar.gz
otp-99dada0ab68e663b26e24e2363c4613c36aa717f.tar.bz2
otp-99dada0ab68e663b26e24e2363c4613c36aa717f.zip
ftp: Remove references to inets
Change-Id: I19bd2f1d4a35cbc5c233ebc8b2a9d52bbd37f047
Diffstat (limited to 'lib/ftp/doc/src/ftp_client.xml')
-rw-r--r--lib/ftp/doc/src/ftp_client.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/ftp/doc/src/ftp_client.xml b/lib/ftp/doc/src/ftp_client.xml
index 84705c1dba..047b055be7 100644
--- a/lib/ftp/doc/src/ftp_client.xml
+++ b/lib/ftp/doc/src/ftp_client.xml
@@ -4,7 +4,7 @@
<chapter>
<header>
<copyright>
- <year>2004</year><year>2016</year>
+ <year>2004</year><year>2018</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
@@ -23,7 +23,7 @@
</legalnotice>
<title>FTP Client</title>
- <prepared>Ingela Anderton Andin</prepared>
+ <prepared>Péter Dimitrov</prepared>
<responsible></responsible>
<docno></docno>
<approved></approved>
@@ -53,9 +53,9 @@
the user <c>guest</c> with password <c>password</c> logs on to
the remote host <c>erlang.org</c>:</p>
<code type="erl"><![CDATA[
- 1> inets:start().
+ 1> ftp:start().
ok
- 2> {ok, Pid} = inets:start(ftpc, [{host, "erlang.org"}]).
+ 2> {ok, Pid} = ftp:start_service([{host, "erlang.org"}]).
{ok,<0.22.0>}
3> ftp:user(Pid, "guest", "password").
ok
@@ -69,7 +69,9 @@
ok
8> ftp:recv(Pid, "appl.erl").
ok
- 9> inets:stop(ftpc, Pid).
+ 9> ftp:stop_service(Pid).
+ ok
+ 10> ftp:stop().
ok
]]></code>
<p> The file