Rumah  >  Artikel  >  pembangunan bahagian belakang  >  Linux Http-Lua-Mode MsgPacknetwork data

Linux Http-Lua-Mode MsgPacknetwork data

WBOY
WBOYasal
2016-08-10 08:48:421056semak imbas

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教程有兴趣的朋友有所帮助。

Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Artikel sebelumnya:PHP函数库(概览)Artikel seterusnya:php lookandsay