ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/vpn_dns.C
(Generate patch)

Comparing gvpe/src/vpn_dns.C (file contents):
Revision 1.44 by pcg, Tue Dec 4 14:55:59 2007 UTC vs.
Revision 1.46 by pcg, Thu Dec 6 00:35:29 2007 UTC

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
726dns_connection::dns_connection (connection *c) 726dns_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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines