Software /
code /
prosody
Diff
net/server_event.lua @ 2453:44d4c69155e0
net.server_event: Add conn:setoption() to set options on the socket
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 12 Jan 2010 15:16:22 +0000 |
parent | 2434:4403d4473783 |
child | 2462:2d81cc25b5a6 |
line wrap: on
line diff
--- a/net/server_event.lua Tue Jan 12 15:15:49 2010 +0000 +++ b/net/server_event.lua Tue Jan 12 15:16:22 2010 +0000 @@ -418,6 +418,10 @@ return true end + function interface_mt:setoption(option, value) + return self.conn:setoption(option, value); + end + -- Stub handlers function interface_mt:onconnect() end