您好,欢迎访问一九零五行业门户网

Linux Http-Lua-Mode MsgPacknetwork data

location:
clients -----|---->  proxy gate -----|---->  gserver
                           ||nginx---------------->http-lua-mode nginx-net.api  ===>  url 、post/get、socket and so on.....(role by web server)
                           ||network data =============================================================================
                                      ||  time255(60秒频率生成key) ==>gen and check the key, use 1 byte for check in the pack
                                      ||  msgpack:packdata = msgpack(rspdata);packdata = msgpack(#packdata) .. packdata
                                      ||  xxtea:encrypt ---(packdta)---> encrystr(binary data)
                                      || package :time255 + ||msgpack way(rspdata)
                                                                             ||xxtea [ msgpack data ]         =====>gen package
                                      ======================================================================
                                      ======================================================================
                                      ||  time255 = nginx api.get() ----|---> string.sub (reqdata, 1 , 1)(time255 len :1 byte)   
                                                                                               || already xxtea and msgpack way data
                                                                                                                               ||
                                                                                               || msgpack way data                                                                                                          ||
                                      || msgpack(#packdata) .. packdata                                                                                     ||                                                                          
                                      (totallen, rspdata)------------------>rspdata=========>unpack data
important :gen encrypt key by time255,time 60s change and key words
key words:
3 . . ? . . x . . # . . ` . . _ . . - . .5 . .  v
! . . \ . . | . . } . .&. .  0
* . . / . . + . . b . . i  . . |
q . . ( . . k . . t . .o . .  p
m . . = . . $ . . { . .u . .h
未经允许,请勿转载
版权声明:本文为博主原创文章,未经博主允许不得转载。
以上就介绍了linux http-lua-mode msgpacknetwork data,包括了方面的内容,希望对php教程有兴趣的朋友有所帮助。
其它类似信息

推荐信息