LFTP Server

Nate Sutton <[email protected]> Mon, 22 Apr 2019 19:27:40 -0500
Newsgroups gmane.network.lftp.user
Message-ID <CAMZDCY2SxO++tT=Lgz+v3WbrGxJLZ6F3KwnkCb_c34xXezMRzA@mail.gmail.com>
--===============2504556991202500763==
Content-Type: multipart/alternative; boundary="000000000000c02a10058727a770"

--000000000000c02a10058727a770
Content-Type: text/plain; charset="UTF-8"

Have you ever considered making LFTP a server process? As in, you could
send commands to a shared server process that executes the transfers and
streams progress back the the client? In theory multiple processes could
initiate transfers and re-use connections.

For that matter, have you considered making machine-parseable output an
option? Maybe JSON like:

{"type": "progress", "progress": 10, "bytes_transferred": 10000,
"bytes_total": 100000, rate: 1}
(where progress is in percent and rate is in K/s)

And then maybe something like this when it finishes?
{"type": "complete", "result": "error", "error": "transfer aborted"}

--000000000000c02a10058727a770
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Have you ever considered making LFTP a server process? As =
in, you could send commands to a shared server process that executes the tr=
ansfers and streams progress back the the client? In theory multiple proces=
ses could initiate transfers and re-use connections.<div><br></div><div>For=
 that matter, have you considered making machine-parseable output an option=
? Maybe JSON like:</div><div><br></div><div>{&quot;type&quot;: &quot;progre=
ss&quot;, &quot;progress&quot;: 10, &quot;bytes_transferred&quot;: 10000, &=
quot;bytes_total&quot;: 100000, rate: 1}</div><div>(where progress is in pe=
rcent and rate is in K/s)<br></div><div><br></div><div>And then maybe somet=
hing like this when it finishes?</div><div>{&quot;type&quot;: &quot;complet=
e&quot;, &quot;result&quot;: &quot;error&quot;, &quot;error&quot;: &quot;tr=
ansfer aborted&quot;}<br></div><div><br></div><div><br></div></div>

--000000000000c02a10058727a770--

--===============2504556991202500763==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============2504556991202500763==--