This commit is contained in:
云风
2014-02-21 15:18:30 +08:00
parent 758eea3583
commit 658d284521
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ local client = ...
skynet.register_protocol {
name = "client",
id = 3,
id = skynet.PTYPE_CLIENT,
pack = function(...) return ... end,
unpack = skynet.tostring,
dispatch = function (session, address, text)

View File

@@ -13,7 +13,7 @@ end
skynet.register_protocol {
name = "client",
id = 3,
id = skynet.PTYPE_CLIENT,
pack = function(...) return ... end,
unpack = function(msg,sz)
if sz == 0 then

View File

@@ -37,7 +37,7 @@ end
skynet.register_protocol {
name = "client",
id = 3,
id = skynet.PTYPE_CLIENT,
}
skynet.start(function()