[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #7017] Implement DNS client

From: Simon Goldschmidt
Subject: [lwip-devel] [task #7017] Implement DNS client
Date: Mon, 19 Nov 2007 18:51:50 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; de; rv: Gecko/20071025 Firefox/

Follow-up Comment #49, task #7017 (project lwip):

I'm not familiar with the layout/structs dns uses to address the buffer the
pbuf points to, but I guess coping with a split response will be very
difficult, so we have to copy the response somewhere.

As to the question where to copy it: the stack is a bad idea in my opinion,
as you have to allocate the memory for every thread that will eventually use
dns (create those threads with a bigger stack). Also, 512 bytes is quite big
for a stack on some systems...

A global variable also won't work as multiple threads would access it at the
same time, so what's left is mem_malloc, I suppose... 


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]