Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Introduction

lproto is short names of Lua Protocol, It's a protocol pack library, the protocol definition by Lua Table syntax(some limits).

lproto 是 Lua Protocol的简写,是一个协议打包库,协议定义格式使用Lua Table格式(有所限制)。

Source in here:

http://git.oschina.net/hanxi/lproto

https://github.com/hanxi/lproto

Support Data Types

  • table (the key must be string)
  • integer (support 64 bits)
  • float (pack using string)
  • string
  • array (the element must the same type)

Test data

  • CPU : i5-5620 @2.4GHz
  • OS : CentOS 6.3
  • encode 1M times : 1.67 s
  • decode 1M times : 3.06 s
  • size : 64 bytes

Support system

  • Only linux now
  • support lua5.1 lua5.2.3 lua5.3.0
  • I think it's simple to support others systems, you can try it.

Compile and test

$ make
$ lua test/test-all-lproto.lua

Others

About

lua protocol : simple protocol by lua table

Resources

License

Packages

No packages published