节点文献
基于TCP下多线程WINSOCK编程
Multi-thread Winsock Programming Based on TCP
【摘要】 本文首先分析了在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.
- 【文献出处】 科技广场 ,Science Mosaic , 编辑部邮箱 ,2006年07期
- 【分类号】TP311.11
- 【被引频次】6
- 【下载频次】214