cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: a curl_multi_fdset() replacement? (TODO-RELEASE #55)

From: Ben Greear <greearb_at_candelatech.com>
Date: Mon, 31 Jan 2005 17:57:01 -0800

codemstr_at_ptd.net wrote:
>>1024 fds is one small 4k page of memory.
>
> It doesn't matter whether it is 1 byte or 1 million bytes, wasted memory is
> wasted memory. I never claimed it to be a large amount. I claimed it was
> wasted, and it is.
>
> Also, I could be wrong (I'm not too familiar with poll), but I don't recall
> it using a linked list at all.
>
> int poll(struct pollfd fds[], nfds_t nfds, int timeout);
>
> That's from my FreeBSD manpage. You specify an array, not a linked list.

Ahh, you are correct..it does take an array.

Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
Received on 2005-02-01