Software /
code /
prosody
Comparison
net/server_select.lua @ 3001:fa00c6f563b4
net.server_select, net.server_event: Rename :pattern() method to :set_mode() for select backend, and add :set_mode() to event backend
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 May 2010 15:23:17 +0100 |
parent | 3000:43a4cb707fe4 |
child | 3002:d1f864ed44c0 |
comparison
equal
deleted
inserted
replaced
3000:43a4cb707fe4 | 3001:fa00c6f563b4 |
---|---|
377 return bufferqueue | 377 return bufferqueue |
378 end | 378 end |
379 handler.socket = function( self ) | 379 handler.socket = function( self ) |
380 return socket | 380 return socket |
381 end | 381 end |
382 handler.pattern = function( self, new ) | 382 handler.set_mode = function( self, new ) |
383 pattern = new or pattern | 383 pattern = new or pattern |
384 return pattern | 384 return pattern |
385 end | 385 end |
386 handler.set_send = function ( self, newsend ) | 386 handler.set_send = function ( self, newsend ) |
387 send = newsend or send | 387 send = newsend or send |