local sockets = {}
-function socket_handler(socket, event, tag, ...)
+local function socket_handler(socket, event, tag, ...)
if event == "flush" then
local buf = sockets[socket].writebuf
local ret = socket_write_raw(socket, buf)
local function socket_ip_connect(fn, address, port, handler, tag)
local connected, socket = fn(address, port, socket_handler, tag)
+
if connected == nil then
return nil
end