socket并发模型

上传者: internet178 | 上传时间: 2023-06-28 09:44:49 | 文件大小: 63KB | 文件类型: GZ
基于TCP的socket的并发模型,用户只需要编写处理程序,就可以了,我的程序里是最大10个连接,是在linux下的代码,数据结构基于nginx的数据结构,使用select并发的,在后续的版本中,我会使用linux的epoll机制, 大家有好的建议,可以发消息给我, 有不足之处,希望大家多多批评指正。

文件下载

资源详情

[{"title":"( 54 个子文件 63KB ) socket并发模型","children":[{"title":"pub","children":[{"title":"array.c <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"list.h <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"base64.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"lmain.o <span style='color:#111;'> 3.10KB </span>","children":null,"spread":false},{"title":"lmain.c <span style='color:#111;'> 6.83KB </span>","children":null,"spread":false},{"title":"1 <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"pool.h <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"pool.c <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"message.c <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"buf.c <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"lhash.o <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"list.c <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"lhash.c <span style='color:#111;'> 10.96KB </span>","children":null,"spread":false},{"title":"array.o <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"pool.o <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"lhash.h <span style='color:#111;'> 7.00KB </span>","children":null,"spread":false},{"title":"lh_stats.c <span style='color:#111;'> 8.39KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 545B </span>","children":null,"spread":false},{"title":"env.sh <span style='color:#111;'> 38B </span>","children":null,"spread":false},{"title":"buf.h <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"lmain <span style='color:#111;'> 14.73KB </span>","children":null,"spread":false},{"title":"server.c <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"buf.o <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"array.h <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"lmain.h <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"list.o <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":false},{"title":"Makefile <span style='color:#111;'> 591B </span>","children":null,"spread":false},{"title":"server","children":[{"title":"array.c <span style='color:#111;'> 2.59KB </span>","children":null,"spread":false},{"title":"list.h <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"base64.h <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"lmain.c <span style='color:#111;'> 6.72KB </span>","children":null,"spread":false},{"title":"1 <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"pool.h <span style='color:#111;'> 2.40KB </span>","children":null,"spread":false},{"title":"pool.c <span style='color:#111;'> 7.21KB </span>","children":null,"spread":false},{"title":"message.c <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"lserver.o <span style='color:#111;'> 6.98KB </span>","children":null,"spread":false},{"title":"buf.c <span style='color:#111;'> 3.41KB </span>","children":null,"spread":false},{"title":"lhash.o <span style='color:#111;'> 3.52KB </span>","children":null,"spread":false},{"title":"list.c <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"lhash.c <span style='color:#111;'> 10.96KB </span>","children":null,"spread":false},{"title":"array.o <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"lserver.c <span style='color:#111;'> 9.16KB </span>","children":null,"spread":false},{"title":"pool.o <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"lhash.h <span style='color:#111;'> 7.00KB </span>","children":null,"spread":false},{"title":"lh_stats.c <span style='color:#111;'> 8.39KB </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 533B </span>","children":null,"spread":false},{"title":"env.sh <span style='color:#111;'> 38B </span>","children":null,"spread":false},{"title":"buf.h <span style='color:#111;'> 3.81KB </span>","children":null,"spread":false},{"title":"server.c <span style='color:#111;'> 1.75KB </span>","children":null,"spread":false},{"title":"buf.o <span style='color:#111;'> 2.06KB </span>","children":null,"spread":false},{"title":"array.h <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"server <span style='color:#111;'> 18.63KB </span>","children":null,"spread":false},{"title":"lmain.h <span style='color:#111;'> 5.41KB </span>","children":null,"spread":false},{"title":"list.o <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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