diff options
author | Matthew Wild <mwild1@gmail.com> | 2010-01-29 16:46:28 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2010-01-29 16:46:28 +0000 |
commit | bf63594f0f37c7bffb93d09fdca6d83a2b8d031f (patch) | |
tree | f985bb7c376f64c158a57278f20251a6946fe964 | |
parent | 39d122abaf1e00c41c8604c17deb27386a6b2223 (diff) | |
download | prosody-bf63594f0f37c7bffb93d09fdca6d83a2b8d031f.tar.gz prosody-bf63594f0f37c7bffb93d09fdca6d83a2b8d031f.zip |
net.server_event: Support :setlistener() method on connections to work with port multiplexing
-rw-r--r-- | net/server_event.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index c01c85a6..73cc9dbc 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -426,6 +426,11 @@ do return false, "setoption not implemented"; end + function interface_mt:setlistener(listener) + self.onconnect, self.ondisconnect, self.onincoming, self.ontimeout + = listener.onconnect, listener.ondisconnect, listener.onincoming, listener.ontimeout; + end + -- Stub handlers function interface_mt:onconnect() end |