Dear,
I do not understand of the list operation of the _evdns_nameserver_add_impl.
How to understand this snippet?
Best is figures and notes.
Thank you very much!
/* insert this nameserver into the list of them */
if (!server_head) {
ns->next = ns->prev = ns;
On Wed, Dec 21, 2011 at 7:53 AM, wang qin wrote:
>
> Dear,
>
> I do not understand of the list operation of the _evdns_nameserver_add_impl.
>
> How to understand this snippet?
>
> Best is figures and notes.
>
>
>
> Thank you very much!
>
>
> /* insert this nameserver into the list of them *
Dear,
This code snippet comes from libevent-2.0.13. The list operation is
the same. I think it does not have any bugs.
yrs,
/* insert this nameserver into the list of them */
if (!base->server_head) {
ns->next = ns->prev = ns;
base->server_head = ns;