cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Transfer data from board's memory to pc

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 9 Mar 2009 16:48:50 +0100 (CET)

On Mon, 9 Mar 2009, fran_x_at_tin.it wrote:

> The transfer will be from the board to pc. I think of organize the
> acquisitions like linked list. From a pc i would see the list, select the
> acquisition i need and transfer data from board's memory to pc.
>
> How is a simple way to do this? I would use ftp for transfer data. Can i use
> libcurl to do it?

You most certainly can.

> Where can i find a ftp server example?

libcurl is a client-side library, for FTP servers you need to look around
elsewhere.

Or did you mean FTP upload example? If so there's this =>

         http://curl.haxx.se/lxr/source/docs/examples/ftpupload.c

but you'd need to replacethe read_callback() implementation with something
that "reads" from your linked list instead.

-- 
  / daniel.haxx.se
Received on 2009-03-09