cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [PATCH] ftp code turned state machine, step 1?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Mon, 10 Jan 2005 15:16:39 +0100 (CET)

On Wed, 5 Jan 2005, Dan Fandrich wrote:

> Have you considered rewriting this as a coroutine? A discussion of one way
> to do this in C at
> http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html You might be
> able to use this technique to keep the main ftp logic much more readable.

I find that technique much too complicated to actually consider it an
improvement.

Since the code will need to be readable, using weird and seldomly seen
techniques is not a good idea I think.

Work on this is progressing slowly but steadily.

-- 
      Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
       Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2005-01-10