lnet:一个轻量级的 Lua httpserver,用于轻松开发 Web 服务-源码

上传者: 42104947 | 上传时间: 2021-09-20 21:35:18 | 文件大小: 27KB | 文件类型: ZIP
Lua
网络更新 2015-03-28 现在支持多httpserver! 参见“httpserver.lua”。 网络更新 2015-03-25 现在支持cosocket! 什么是cosocket? 'cosocket' 是 lnet httpserver 中 http 处理程序的套接字 API wapper。 它提供了 tcp/udp 块操作,但实际上在 lnet httpserver 线程中是非阻塞的。 是的,“cosocket”这个名字的意思是“协程套接字”。 我们在执行一些块操作(如连接等)时退出正在运行的 corouine,并在套接字准备好时恢复。 要使用 cosocket,你必须在你的 lua 代码中明确要求 'lnet.cosocket',它返回一个对象: 本地套接字 = 需要“lnet.cosocket” tcp = Socket:tcp(ip, port) -- 创建

文件下载

资源详情

[{"title":"( 27 个子文件 27KB ) lnet:一个轻量级的 Lua httpserver,用于轻松开发 Web 服务-源码","children":[{"title":"lnet-master","children":[{"title":"lnet","children":[{"title":"cosocket.lua <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false},{"title":"model_http.lua <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"modules","children":[{"title":"httpclient.lua <span style='color:#111;'> 1.57KB </span>","children":null,"spread":false}],"spread":true},{"title":"server_worker.lua <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"core.lua <span style='color:#111;'> 2.20KB </span>","children":null,"spread":false},{"title":"proto_http.lua <span style='color:#111;'> 5.33KB </span>","children":null,"spread":false},{"title":"server.lua <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"model_http","children":[{"title":"mime.lua <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"interpreter.lua <span style='color:#111;'> 849B </span>","children":null,"spread":false},{"title":"config","children":[{"title":"default.lua <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"root","children":[{"title":"index.lua <span style='color:#111;'> 304B </span>","children":null,"spread":false}],"spread":true},{"title":"handler","children":[{"title":"default.lua <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"test_socket.lua <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"test.lua <span style='color:#111;'> 954B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"lnet.vcproj <span style='color:#111;'> 4.52KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"lnet.c <span style='color:#111;'> 9.36KB </span>","children":null,"spread":false},{"title":"poll_win32.c <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"poll.c <span style='color:#111;'> 2.30KB </span>","children":null,"spread":false},{"title":"socket.c <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":"poll.h <span style='color:#111;'> 673B </span>","children":null,"spread":false},{"title":"socket.h <span style='color:#111;'> 935B </span>","children":null,"spread":false}],"spread":true},{"title":"common.mk <span style='color:#111;'> 3.09KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 576B </span>","children":null,"spread":false},{"title":"httpserver.lua <span style='color:#111;'> 467B </span>","children":null,"spread":false},{"title":"lnet.sln <span style='color:#111;'> 872B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明