mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
remove magic number in lua
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user