Software /
code /
verse
Comparison
init.lua @ 60:1f47ddab3499
verse: Fire "status" event for connection status changes (notably SSL handshake complete)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 11 May 2010 22:40:13 +0100 (2010-05-11) |
parent | 59:829a0a495dd1 |
child | 64:a28540d4117a |
comparison
equal
deleted
inserted
replaced
59:829a0a495dd1 | 60:1f47ddab3499 |
---|---|
145 | 145 |
146 function conn_listener.ondrain(conn) | 146 function conn_listener.ondrain(conn) |
147 stream:event("drained"); | 147 stream:event("drained"); |
148 end | 148 end |
149 | 149 |
150 function conn_listener.onstatus(conn, new_status) | |
151 stream:event("status", new_status); | |
152 end | |
153 | |
150 return conn_listener; | 154 return conn_listener; |
151 end | 155 end |
152 | 156 |
153 | 157 |
154 local log = require "util.logger".init("verse"); | 158 local log = require "util.logger".init("verse"); |