aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-01-12 15:16:22 +0000
committerMatthew Wild <mwild1@gmail.com>2010-01-12 15:16:22 +0000
commita00a7f76bc8bbc8a0174bfda7b7962e981e984df (patch)
tree73ef163a59d8ff7b4999698a8106019df13ad9b0 /net
parent38b5bebb5e8f53b3a83e4c46a3d2da1bcf6ead95 (diff)
downloadprosody-a00a7f76bc8bbc8a0174bfda7b7962e981e984df.tar.gz
prosody-a00a7f76bc8bbc8a0174bfda7b7962e981e984df.zip
net.server_event: Add conn:setoption() to set options on the socket
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 2ce6add2..62c199c6 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -418,6 +418,10 @@ do
return true
end
+ function interface_mt:setoption(option, value)
+ return self.conn:setoption(option, value);
+ end
+
-- Stub handlers
function interface_mt:onconnect()
end