Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
2452:2a51031c9ca3 | 2453:44d4c69155e0 |
---|---|
416 debug "ssl session delayed until writebuffer is empty..." | 416 debug "ssl session delayed until writebuffer is empty..." |
417 end | 417 end |
418 return true | 418 return true |
419 end | 419 end |
420 | 420 |
421 function interface_mt:setoption(option, value) | |
422 return self.conn:setoption(option, value); | |
423 end | |
424 | |
421 -- Stub handlers | 425 -- Stub handlers |
422 function interface_mt:onconnect() | 426 function interface_mt:onconnect() |
423 end | 427 end |
424 function interface_mt:onincoming() | 428 function interface_mt:onincoming() |
425 end | 429 end |