Software /
code /
prosody
Comparison
net/adns.lua @ 2556:50d1ba86a959
net.adns: Trailing whitespace
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 31 Jan 2010 18:09:37 +0000 |
parent | 2232:aa8db84ae69d |
child | 2558:0a65fc0c7bee |
comparison
equal
deleted
inserted
replaced
2555:9b9e4d8704f9 | 2556:50d1ba86a959 |
---|---|
64 end | 64 end |
65 | 65 |
66 handler.settimeout = function () end | 66 handler.settimeout = function () end |
67 handler.setsockname = function (_, ...) return sock:setsockname(...); end | 67 handler.setsockname = function (_, ...) return sock:setsockname(...); end |
68 handler.setpeername = function (_, ...) peername = (...); local ret = sock:setpeername(...); _:set_send(sock.send); return ret; end | 68 handler.setpeername = function (_, ...) peername = (...); local ret = sock:setpeername(...); _:set_send(sock.send); return ret; end |
69 handler.connect = function (_, ...) return sock:connect(...) end | 69 handler.connect = function (_, ...) return sock:connect(...) end |
70 handler.send = function (_, data) _:write(data); return _.sendbuffer and _.sendbuffer(); end | 70 handler.send = function (_, data) _:write(data); return _.sendbuffer and _.sendbuffer(); end |
71 return handler; | 71 return handler; |
72 end | 72 end |
73 | 73 |
74 dns:socket_wrapper_set(new_async_socket); | 74 dns:socket_wrapper_set(new_async_socket); |
75 | 75 |