remove magic number in lua

This commit is contained in:
云风
2013-12-18 22:42:10 +08:00
parent f54776e181
commit 331c8009f8
3 changed files with 24 additions and 14 deletions

View File

@@ -104,7 +104,7 @@ end
skynet.register_protocol {
name = "socket",
id = 6, -- PTYPE_SOCKET
id = skynet.PTYPE_SOCKET, -- PTYPE_SOCKET = 6
unpack = driver.unpack,
dispatch = function (_, _, t, n1, n2, data)
socket_message[t](n1,n2,data)