Software /
code /
prosody
Diff
net/server_epoll.lua @ 7910:91db637be237
net.server_epoll: Add method for changing read pattern
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 Feb 2017 17:41:39 +0100 |
parent | 7817:4e3654031693 |
child | 8006:be374a5778f3 |
line wrap: on
line diff
--- a/net/server_epoll.lua Mon Feb 20 01:46:54 2017 +0100 +++ b/net/server_epoll.lua Sat Feb 25 17:41:39 2017 +0100 @@ -192,6 +192,10 @@ return self.conn; end +function interface:set_mode(new_mode) + self._pattern = new_mode; +end + function interface:setoption(k, v) -- LuaSec doesn't expose setoption :( if self.conn.setoption then