Hello!
On Thu, Dec 20, 2012 at 7:34 PM, lhmwzy <lh...@gmail.com> wrote:
> 2012/12/20 zachary hu <hzw...@gmail.com>:
>> 请教下如何使用 ngx_lua socket_send 给C++socket 服务端 127.0.0.1:12345
>> 发送数据包,协议格式如下
>>
>> <package>
>> <response state="+OK" service="a1000" >
>> <user userID=""></user>
>> </response>
>> </package>
>> \r\n.\r\n
> 这个,我想可以参考lua-resty系列模块
>
还有 ngx_lua 的 cosocket API 的官方文档:
http://wiki.nginx.org/HttpLuaModule#ngx.socket.tcp
所有的 lua-resty-* 库都是基于此 API.
Best regards,
-agentzh