tengine lua 开源一 调用内部接口高效发送文件

tengine  lua 开源一 调用内部接口高效发送文件

开源自己封装的sendfile 模块,可以高效的通过lua发送文件


源码地址:https://github.com/weinyzhou/Lua-sendfile


调用方法

local sendfile=require "sendfile";

sendfile.call(filename,-1,-1);


第一个参数文件名,

第二个参数开始位置

第三个参数长度


posted @ 2015-01-08 15:46  weinyzhou  阅读(317)  评论(0编辑  收藏  举报