节点文献

基于TCP下多线程WINSOCK编程

Multi-thread Winsock Programming Based on TCP

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 张磊王贞化

【Author】 Zhang Lei Wang Zhenhua(1.School of Computer Science & Technology, Soochow University, Shuzhou 215006; 2.College of Computer & Information Technology, Henan Normal University, Xinxiang 453007)

【机构】 苏州大学计算机科学与技术学院河南师范大学计算机与信息技术学院 新乡453007河南师范大学计算机与信息技术学院苏州215006新乡453007

【摘要】 本文首先分析了在WINSOCK下具体网络编程过程中的实际需求,利用线程创建函数编写了服务器对多个客户同时响应的例子,即在每一个客户提出请求后,主程序调用CreateThread子函数创建一个线程去服务客户,而主程序返回去等待下一个客户请求,从而实现多个客户与服务器间的通信。

【Abstract】 Firstly, this paper analysis actual demands in concrete network programming process at Winsock, compiles the example that the server program responds to many customers at the same time by using the CreateThread function .Namely proposed the request after each customer, the master program adjusts the CreateThread sub- function to found a thread to serve each customer. Then the master program returns to wait next customer to request, and so realize correspondence between many customers and the server.

【关键词】 套接字传输控制协议多线程客户/服务器
【Key words】 SocketsTCPMulti-threadClient/Server
  • 【分类号】TP311.11
  • 【被引频次】6
  • 【下载频次】214
节点文献中: 

本文链接的文献网络图示:

本文的引文网络