cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: small question about "struct connectdata"

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 5 Jan 2011 17:03:48 +0100 (CET)

On Wed, 5 Jan 2011, amit paliwal wrote:

> This structure contains two members:
>
> Curl_recv *recv[2];
> Curl_send *send[2];
>
> So i think we are handling some function pointer here. Now my question is,
> why do we need two elements in recv[] array?

Because we have potentially two connections, with FTP(S) connections.

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