1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- local sprotoparser = require "sprotoparser"
- local proto = {}
- proto.c2s = sprotoparser.parse [[
- .package {
- type 0 : integer
- session 1 : integer
- }
- handshake 1 {
- response {
- msg 0 : string
- }
- }
- get 2 {
- request {
- what 0 : string
- }
- response {
- result 0 : string
- }
- }
- set 3 {
- request {
- what 0 : string
- value 1 : string
- }
- }
- quit 4 {}
- ]]
- proto.s2c = sprotoparser.parse [[
- .package {
- type 0 : integer
- session 1 : integer
- }
- heartbeat 1 {}
- ]]
- return proto
|