sproto.attach also need ud

This commit is contained in:
Cloud Wu
2016-01-05 17:51:48 +08:00
parent 64c2cb1b51
commit 05003e3e2a

View File

@@ -227,10 +227,11 @@ function host:dispatch(...)
end
function host:attach(sp)
return function(name, args, session)
return function(name, args, session, ud)
local proto = queryproto(sp, name)
header_tmp.type = proto.tag
header_tmp.session = session
header_tmp.ud = ud
local header = core.encode(self.__package, header_tmp)
if session then