mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
change skynet_send api (use uint32_t instead of string)
This commit is contained in:
@@ -15,7 +15,7 @@ end
|
||||
|
||||
skynet.dispatch(function(msg, sz , session, from)
|
||||
local message = skynet.tostring(msg,sz)
|
||||
print("simpledb",message, from, session)
|
||||
print("simpledb",message, skynet.address(from), session)
|
||||
local cmd, key , value = string.match(message, "(%w+) (%w+) ?(.*)")
|
||||
local f = command[cmd]
|
||||
if f then
|
||||
|
||||
Reference in New Issue
Block a user