- struct { adns_query head, tail } input, timew, childw, output;
- int udpsocket;
- int qbufavail, tcpbufavail, tcpbufused, tcpbufdone;
- char *qbuf, *tcpbuf;
- int nservers;
- struct {
+ /* FIXME: make sure this is all init'd properly */
+ adns_initflags iflags;
+ struct { adns_query head, tail; } tosend, timew, childw, output;
+ int nextid, udpsocket;
+ adns_vbuf rqbuf, tcpsend, tcprecv;
+ int nservers, tcpserver;
+ enum adns__tcpstate { server_disc, server_connecting, server_ok } tcpstate;
+ int tcpsocket;
+ struct timeval tcptimeout;
+ struct server {