lwip-devel
[Top][All Lists]
Advanced

[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:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9

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:

  <http://savannah.nongnu.org/task/?7017>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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