Software /
code /
prosody
Comparison
net/server_event.lua @ 3649:ae99396ee261
net.server_event: API parity with net.server_socket
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 21 Nov 2010 21:02:31 -0800 |
parent | 3458:9c3ae41e696c |
child | 4008:36bee5ca8b95 |
comparison
equal
deleted
inserted
replaced
3646:66c5fb109e64 | 3649:ae99396ee261 |
---|---|
357 end | 357 end |
358 self:_close( timeout ) -- add new event to remove the server interface | 358 self:_close( timeout ) -- add new event to remove the server interface |
359 debug( "seconds remained until server is closed:", timeout ) | 359 debug( "seconds remained until server is closed:", timeout ) |
360 return count -- returns finished clients with empty writebuffer | 360 return count -- returns finished clients with empty writebuffer |
361 end | 361 end |
362 end | |
363 | |
364 function interface_mt:socket() | |
365 return self.conn | |
362 end | 366 end |
363 | 367 |
364 function interface_mt:server() | 368 function interface_mt:server() |
365 return self._server or self; | 369 return self._server or self; |
366 end | 370 end |