davin
davin
for example: clientA and clientB connect to serverC; how does this serverC send message buff to the ClientA ?
在嵌套的协议上面,这是个比较严重的问题额~ message msgone { optional int32 msg1aid = 1; optional int32 msg1bid = 2; optional int32 msg1cid = 3; } message msgtwo { optional int32 msg2aid = 1; optional int32...
我填数据测试,将repeated msgthree msgthreeAry 里的msgthree3个值都设置为0,这时候会被忽略掉。 local msgone_arg={} for i=1,3 do local msgtOne ={} msgtOne.msg1aid =1 msgtOne.msg1bid =1 msgtOne.msg1cid =1 msgone_arg[#msgone_arg+1]=msgtOne ## end local msgthreeAry ={} for i=1,3 do local msgthree ={}...
应该说repeated标记msgthreeAry不会被忽略,但是因为它的元素是optional int32的,会被忽略掉 就是导致有数组,但是没有数据,从而在另外一端java解析的时候会解析出错。 是在哪里忽略的?能告诉个范围位置,然后我去掉这个特性试试不?
将换成去掉 local function default_table(typename) local v = default_cache[typename] if v then return v end v = { __index = assert(decode_message(typename , "")) } -- default_cache[typename] = v return v end...