add log when listen

This commit is contained in:
Cloud Wu
2014-09-30 06:16:16 +08:00
parent 9713b055a0
commit 535bbc7219

View File

@@ -37,6 +37,7 @@ function gateserver.start(handler)
local port = assert(conf.port)
maxclient = conf.maxclient or 1024
nodelay = conf.nodelay
skynet.error(string.format("Listen on %s:%d", address, port))
socket = socketdriver.listen(address, port)
socketdriver.start(socket)
if handler.open then