mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
Fix Issue #67
This commit is contained in:
@@ -3,7 +3,7 @@ local client = ...
|
|||||||
|
|
||||||
skynet.register_protocol {
|
skynet.register_protocol {
|
||||||
name = "client",
|
name = "client",
|
||||||
id = 3,
|
id = skynet.PTYPE_CLIENT,
|
||||||
pack = function(...) return ... end,
|
pack = function(...) return ... end,
|
||||||
unpack = skynet.tostring,
|
unpack = skynet.tostring,
|
||||||
dispatch = function (session, address, text)
|
dispatch = function (session, address, text)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ end
|
|||||||
|
|
||||||
skynet.register_protocol {
|
skynet.register_protocol {
|
||||||
name = "client",
|
name = "client",
|
||||||
id = 3,
|
id = skynet.PTYPE_CLIENT,
|
||||||
pack = function(...) return ... end,
|
pack = function(...) return ... end,
|
||||||
unpack = function(msg,sz)
|
unpack = function(msg,sz)
|
||||||
if sz == 0 then
|
if sz == 0 then
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ end
|
|||||||
|
|
||||||
skynet.register_protocol {
|
skynet.register_protocol {
|
||||||
name = "client",
|
name = "client",
|
||||||
id = 3,
|
id = skynet.PTYPE_CLIENT,
|
||||||
}
|
}
|
||||||
|
|
||||||
skynet.start(function()
|
skynet.start(function()
|
||||||
|
|||||||
Reference in New Issue
Block a user