cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: IMAP: What is Curl_setup_transfer supposed to accompilsh?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 4 Apr 2010 22:17:27 +0200 (CEST)

On Fri, 2 Apr 2010, Ben Greear wrote:

> What is the Curl_setup_transfer supposed to cause to happen?

It inits a few variables for the upcoming transfer. Everything in libcurl
basically is one of five "phases":

OPEN
DO
TRANSFER
DONE
CLOSE

... and TRANSFER is most often a raw sending of data that doesn't need a
complicated state machine. During the 'DO' phase, the code for a protocol uses
Curl_setup_transfer() to store a set of variables for the next phase:
TRANSFER.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-04-04