socket accept report addr:port

This commit is contained in:
Cloud Wu
2014-09-29 14:42:42 +08:00
parent c8775ee6f5
commit aab65a2728
2 changed files with 5 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ local gate
local agent = {}
function SOCKET.open(fd, addr)
skynet.error("New client from : " .. addr)
agent[fd] = skynet.newservice("agent")
skynet.call(agent[fd], "lua", "start", gate, fd, proto)
end