summaryrefslogtreecommitdiffstats
path: root/articles/ranch-ftp/index.html
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-11-26 12:58:19 +0100
committerLoïc Hoguin <[email protected]>2016-11-26 12:58:19 +0100
commit9c80a8810759c9ed19606547c5aaa47aa1699be4 (patch)
treedc36dcc3c97db8dc2476c46df9b2ba596e9e578a /articles/ranch-ftp/index.html
parentb2d4e41dcda3c2964c8a865482129a7fdf9e55a6 (diff)
downloadninenines.eu-9c80a8810759c9ed19606547c5aaa47aa1699be4.tar.gz
ninenines.eu-9c80a8810759c9ed19606547c5aaa47aa1699be4.tar.bz2
ninenines.eu-9c80a8810759c9ed19606547c5aaa47aa1699be4.zip
Add Ranch 1.3 and various small fixes
Diffstat (limited to 'articles/ranch-ftp/index.html')
-rw-r--r--articles/ranch-ftp/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/articles/ranch-ftp/index.html b/articles/ranch-ftp/index.html
index 226e07e4..669c9e65 100644
--- a/articles/ranch-ftp/index.html
+++ b/articles/ranch-ftp/index.html
@@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="author" content="Loïc Hoguin based on a design from (Soft10) Pol Cámara">
- <meta name="generator" content="Hugo 0.16" />
+ <meta name="generator" content="Hugo 0.17" />
<title>Nine Nines: Build an FTP Server with Ranch in 30 Minutes</title>
@@ -264,7 +264,7 @@ http://www.gnu.org/software/src-highlite -->
<span style="color: #009900">Buffer2</span> <span style="color: #990000">=</span> <span style="color: #990000">&lt;&lt;</span> <span style="color: #009900">Buffer</span><span style="color: #990000">/</span><span style="font-weight: bold"><span style="color: #000080">binary</span></span>, <span style="color: #009900">Data</span><span style="color: #990000">/</span><span style="font-weight: bold"><span style="color: #000080">binary</span></span> <span style="color: #990000">&gt;&gt;</span>,
{<span style="color: #009900">Commands</span>, <span style="color: #009900">Rest</span>} <span style="color: #990000">=</span> <span style="font-weight: bold"><span style="color: #000000">split</span></span>(<span style="color: #009900">Buffer2</span>),
[<span style="font-weight: bold"><span style="color: #000000">handle</span></span>(<span style="color: #009900">Socket</span>, <span style="color: #009900">Transport</span>, <span style="color: #009900">C</span>) || <span style="color: #009900">C</span> <span style="color: #990000">&lt;-</span> <span style="color: #009900">Commands</span>],
- <span style="font-weight: bold"><span style="color: #000000">loop</span></span>(<span style="color: #009900">Socket</span>, <span style="color: #009900">Transport</span>);
+ <span style="font-weight: bold"><span style="color: #000000">loop</span></span>(<span style="color: #009900">Socket</span>, <span style="color: #009900">Transport</span>, <span style="color: #009900">Rest</span>);
{<span style="color: #FF6600">error</span>, <span style="color: #990000">_</span>} <span style="color: #990000">-&gt;</span>
<span style="font-weight: bold"><span style="color: #000000">io:format</span></span>(<span style="color: #FF0000">"The client disconnected~n"</span>)
<span style="font-weight: bold"><span style="color: #0000FF">end</span></span><span style="color: #990000">.</span></tt></pre></div></div>