mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +00:00
add log when listen
This commit is contained in:
@@ -37,6 +37,7 @@ function gateserver.start(handler)
|
|||||||
local port = assert(conf.port)
|
local port = assert(conf.port)
|
||||||
maxclient = conf.maxclient or 1024
|
maxclient = conf.maxclient or 1024
|
||||||
nodelay = conf.nodelay
|
nodelay = conf.nodelay
|
||||||
|
skynet.error(string.format("Listen on %s:%d", address, port))
|
||||||
socket = socketdriver.listen(address, port)
|
socket = socketdriver.listen(address, port)
|
||||||
socketdriver.start(socket)
|
socketdriver.start(socket)
|
||||||
if handler.open then
|
if handler.open then
|
||||||
|
|||||||
Reference in New Issue
Block a user