Software /
code /
prosody
Comparison
net/server_event.lua @ 5755:9a9c2c254412
net.server_event: Pass ondrain handler from listener
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 22 Jul 2013 18:17:30 +0200 |
parent | 5531:483f795f6f99 |
child | 5756:61521ce49aae |
child | 6045:a5b5bce71a11 |
comparison
equal
deleted
inserted
replaced
5754:dee0f05ccf70 | 5755:9a9c2c254412 |
---|---|
475 receive = client.receive; | 475 receive = client.receive; |
476 onconnect = listener.onconnect; -- will be called when client disconnects | 476 onconnect = listener.onconnect; -- will be called when client disconnects |
477 ondisconnect = listener.ondisconnect; -- will be called when client disconnects | 477 ondisconnect = listener.ondisconnect; -- will be called when client disconnects |
478 onincoming = listener.onincoming; -- will be called when client sends data | 478 onincoming = listener.onincoming; -- will be called when client sends data |
479 ontimeout = listener.ontimeout; -- called when fatal socket timeout occurs | 479 ontimeout = listener.ontimeout; -- called when fatal socket timeout occurs |
480 ondrain = listener.ondrain; -- called when writebuffer is empty | |
480 onstatus = listener.onstatus; -- called for status changes (e.g. of SSL/TLS) | 481 onstatus = listener.onstatus; -- called for status changes (e.g. of SSL/TLS) |
481 eventread = false, eventwrite = false, eventclose = false, | 482 eventread = false, eventwrite = false, eventclose = false, |
482 eventhandshake = false, eventstarthandshake = false; -- event handler | 483 eventhandshake = false, eventstarthandshake = false; -- event handler |
483 eventconnect = false, eventsession = false; -- more event handler... | 484 eventconnect = false, eventsession = false; -- more event handler... |
484 eventwritetimeout = false; -- even more event handler... | 485 eventwritetimeout = false; -- even more event handler... |