Diff

net/dns.lua @ 2619:04158baefa34

net.dns: Update for new socket API
author Matthew Wild <mwild1@gmail.com>
date Fri, 12 Feb 2010 15:02:57 +0000
parent 2578:61e5eff54415
child 2620:481c6724818f
line wrap: on
line diff
--- a/net/dns.lua	Fri Feb 12 12:47:23 2010 +0000
+++ b/net/dns.lua	Fri Feb 12 15:02:57 2010 +0000
@@ -723,7 +723,7 @@
 	for i,sock in pairs(rset) do
 
 		if self.socketset[sock] then
-			local packet = sock.receive();
+			local packet = sock:receive();
 			if packet then
 				response = self:decode(packet);
 				if response and self.active[response.header.id]