struct addrinfo *curr_ai;
/* connection related */
+ int IP6;
+ struct hostent *HEnt;
int sock;
+ unsigned short dport;
int active_event;
eNextState NextState;
ev_io recv_event,
send_event,
- conn_event;
+ dns_io_event;
StrBuf *ErrMsg; /* if we fail to connect, or lookup, error goes here. */
/* read/send related... */
SendDone, /* we may send more data */
Terminate, /* shutting down... */
Timeout, /* Timeout handler; may also be connection timeout */
- ConnFail, /* What to do when one connection failed? */
- CustomDNS; /* If the application wants to do custom dns functionality like cycle through different MX-Records */
+ ConnFail; /* What to do when one connection failed? */
IO_LineReaderCallback LineReader; /* if we have linereaders, maybe we want to read more lines before the real application logic is called? */
IO_CallBack Terminate,
IO_CallBack Timeout,
IO_CallBack ConnFail,
- IO_CallBack CustomDNS,
IO_LineReaderCallback LineReader,
int ReadFirst);