[Libevent-users] The function list operation of "_evdns_nameserver_add_impl"

2011-12-21 Thread wang qin
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;

Re: [Libevent-users] The function list operation of "_evdns_nameserver_add_impl"

2011-12-21 Thread Nick Mathewson
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 *

Re: [Libevent-users] The function list operation of "_evdns_nameserver_add_impl"

2011-12-21 Thread wang qin
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;