Comparison

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
comparison
equal deleted inserted replaced
7909:428d4abee723 7910:91db637be237
188 end 188 end
189 189
190 -- Return underlying socket 190 -- Return underlying socket
191 function interface:socket() 191 function interface:socket()
192 return self.conn; 192 return self.conn;
193 end
194
195 function interface:set_mode(new_mode)
196 self._pattern = new_mode;
193 end 197 end
194 198
195 function interface:setoption(k, v) 199 function interface:setoption(k, v)
196 -- LuaSec doesn't expose setoption :( 200 -- LuaSec doesn't expose setoption :(
197 if self.conn.setoption then 201 if self.conn.setoption then