Comparison

net/server_event.lua @ 7040:bdcea2dd33b8

net.server_event: Add conn.type == 'server' for server sockets (fixes closeallservers() )
author Matthew Wild <mwild1@gmail.com>
date Sat, 02 Jan 2016 20:40:34 +0000
parent 6860:153a2e49c4f7
child 7042:20ac6972b9aa
child 7224:07a4c807a94a
comparison
equal deleted inserted replaced
7039:138241cc1b3a 7040:bdcea2dd33b8
612 local function handleserver( server, addr, port, pattern, listener, sslctx ) -- creates an server interface 612 local function handleserver( server, addr, port, pattern, listener, sslctx ) -- creates an server interface
613 debug "creating server interface..." 613 debug "creating server interface..."
614 local interface = { 614 local interface = {
615 _connections = 0; 615 _connections = 0;
616 616
617 type = "server";
617 conn = server; 618 conn = server;
618 onconnect = listener.onconnect; -- will be called when new client connected 619 onconnect = listener.onconnect; -- will be called when new client connected
619 eventread = false; -- read event handler 620 eventread = false; -- read event handler
620 eventclose = false; -- close event handler 621 eventclose = false; -- close event handler
621 readcallback = false; -- read event callback 622 readcallback = false; -- read event callback