Software /
code /
prosody
Comparison
net/dns.lua @ 2387:92264ee3a0e4
net.dns: Update synchronous path for new connection API
author | Brian Cully <bjc@junctionnetworks.com> |
---|---|
date | Mon, 21 Dec 2009 17:03:47 +0000 |
parent | 2301:8a01b0898679 |
child | 2425:772b2caf762e |
comparison
equal
deleted
inserted
replaced
2386:bfb093a0df1e | 2387:92264ee3a0e4 |
---|---|
721 | 721 |
722 local response; | 722 local response; |
723 for i,sock in pairs(rset) do | 723 for i,sock in pairs(rset) do |
724 | 724 |
725 if self.socketset[sock] then | 725 if self.socketset[sock] then |
726 local packet = sock:receive(); | 726 local packet = sock.receive(); |
727 if packet then | 727 if packet then |
728 response = self:decode(packet); | 728 response = self:decode(packet); |
729 if response and self.active[response.header.id] | 729 if response and self.active[response.header.id] |
730 and self.active[response.header.id][response.question.raw] then | 730 and self.active[response.header.id][response.question.raw] then |
731 --print('received response'); | 731 --print('received response'); |