When printing the "reason" of the event disonnection I get:
userdata: 3fff3ce0
Does anybody know what that means? ANY HELP WILL BE HIGHLY APPRECIATED!!!
This is my code:
sk=net.createConnection(net.TCP, 0)
sk:on("receive", function(socket,data)
print("receive..." .. data)
end)
sk:on("sent", function(dat)
print("sent...")
end)
sk:on("connection", function(sck)
print("connected...")
end)
sk:on("disconnection", function(sck,data)
print("disconnected...")
if(sck ~= nil) then
print(sck)
end
end)
sk:connect(4001,"10.0.0.161")
Thanks