Changeset

2452:2a51031c9ca3

net.server_select: Add conn:setoption() to set options on the socket
author Matthew Wild <mwild1@gmail.com>
date Tue, 12 Jan 2010 15:15:49 +0000
parents 2451:d2f747920eaf
children 2453:44d4c69155e0
files net/server_select.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Mon Jan 11 19:17:26 2010 +0500
+++ b/net/server_select.lua	Tue Jan 12 15:15:49 2010 +0000
@@ -353,6 +353,9 @@
     handler.shutdown = function( pattern )
         return shutdown( socket, pattern )
     end
+    handler.setoption = function (self, option, value)
+    	return socket:setoption(option, value);
+    end
     handler.close = function( self, forced )
         if not handler then return true; end
         _readlistlen = removesocket( _readlist, socket, _readlistlen )