Software /
code /
prosody
Comparison
net/adns.lua @ 2710:1600aff0839f
net.adns: Trailing whitespace
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 20 Jan 2010 02:44:38 +0000 |
parent | 1901:3c52b949e472 |
child | 2714:9c5d8e0c146e |
child | 2923:b7049746bd29 |
comparison
equal
deleted
inserted
replaced
2709:db3497124ca2 | 2710:1600aff0839f |
---|---|
65 log("warn", "socket is nil"); | 65 log("warn", "socket is nil"); |
66 end | 66 end |
67 newconn.handler.settimeout = function () end | 67 newconn.handler.settimeout = function () end |
68 newconn.handler.setsockname = function (_, ...) return sock:setsockname(...); end | 68 newconn.handler.setsockname = function (_, ...) return sock:setsockname(...); end |
69 newconn.handler.setpeername = function (_, ...) peername = (...); local ret = sock:setpeername(...); _.setsend(sock.send); return ret; end | 69 newconn.handler.setpeername = function (_, ...) peername = (...); local ret = sock:setpeername(...); _.setsend(sock.send); return ret; end |
70 newconn.handler.connect = function (_, ...) return sock:connect(...) end | 70 newconn.handler.connect = function (_, ...) return sock:connect(...) end |
71 newconn.handler.send = function (_, data) _.write(data); return _.sendbuffer(); end | 71 newconn.handler.send = function (_, data) _.write(data); return _.sendbuffer(); end |
72 return newconn.handler; | 72 return newconn.handler; |
73 end | 73 end |
74 | 74 |
75 dns:socket_wrapper_set(new_async_socket); | 75 dns:socket_wrapper_set(new_async_socket); |
76 | 76 |