Changeset

7066:7d5a1fb9bf9e

net.server_select: Add 'server' method to client connections (present in server_event)
author Kim Alvefur <zash@zash.se>
date Sat, 09 Jan 2016 23:54:19 +0100
parents 7065:4fc3c008976f
children 7067:4c0ec9bd5168
files net/server_select.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_select.lua	Sat Jan 09 16:58:39 2016 +0100
+++ b/net/server_select.lua	Sat Jan 09 23:54:19 2016 +0100
@@ -398,6 +398,9 @@
 		out_put "server.lua: closed client handler and removed socket from list"
 		return true
 	end
+	handler.server = function ( )
+		return server
+	end
 	handler.ip = function( )
 		return ip
 	end