local skynet =require("skynet")-- 处理加法 req - responsefunction response.add(...)local res =0for i, v inipairs{...}do
res = res + v
endreturn res
end-- 处理减法 post - acceptfunction accept.sub(lhs, rhs)local res = lhs - rhs
skynet.error(lhs .." - ".. rhs .." = ".. res)endfunctioninit(...)
skynet.error(...)endfunctionexit(...)end