… | |
… | |
560 | vector<dns_rcv *> rcvpq; |
560 | vector<dns_rcv *> rcvpq; |
561 | |
561 | |
562 | byte_stream rcvdq; int rcvseq; int repseq; |
562 | byte_stream rcvdq; int rcvseq; int repseq; |
563 | byte_stream snddq; int sndseq; |
563 | byte_stream snddq; int sndseq; |
564 | |
564 | |
565 | void time_cb (ev::timer &w, int revents); ev::timer tw; |
565 | inline void time_cb (ev::timer &w, int revents); ev::timer tw; |
566 | void receive_rep (dns_rcv *r); |
566 | void receive_rep (dns_rcv *r); |
567 | |
567 | |
568 | dns_connection (connection *c); |
568 | dns_connection (connection *c); |
569 | ~dns_connection (); |
569 | ~dns_connection (); |
570 | }; |
570 | }; |
… | |
… | |
725 | |
725 | |
726 | dns_connection::dns_connection (connection *c) |
726 | dns_connection::dns_connection (connection *c) |
727 | : c (c) |
727 | : c (c) |
728 | , rcvdq (MAX_BACKLOG * 2) |
728 | , rcvdq (MAX_BACKLOG * 2) |
729 | , snddq (MAX_BACKLOG) |
729 | , snddq (MAX_BACKLOG) |
730 | , tw (this, &dns_connection::time_cb) |
|
|
731 | { |
730 | { |
|
|
731 | tw.set<dns_connection, &dns_connection::time_cb> (this); |
|
|
732 | |
732 | vpn = c->vpn; |
733 | vpn = c->vpn; |
733 | |
734 | |
734 | established = false; |
735 | established = false; |
735 | |
736 | |
736 | rcvseq = repseq = sndseq = 0; |
737 | rcvseq = repseq = sndseq = 0; |