首页 | 本学科首页   官方微博 | 高级检索  
     

基于HTTP协议的服务器程序分析
引用本文:祝瑞,车敏. 基于HTTP协议的服务器程序分析[J]. 现代电子技术, 2012, 35(4): 117-119,122
作者姓名:祝瑞  车敏
作者单位:西安空军工程大学电子科学系,陕西西安,710043
基金项目:陕西省电子信息系统和综合集成重点试验室基金项目资助项目(200904B)
摘    要:绝大多数的Web开发,都是构建在HTTP协议之上的Web应用。为了分析基于HTTP协议服务器程序以及浏览器与服务器的交互过程,以一个简单的基于HTTP协议中服务器程序为实例,探讨怎样使用多线程与异步操作的理论,运用WinSock编程来逐步解析HTTP协议的服务器程序的核心部分,这样既可达到避免调用线程阻塞的目的,又可提高服务器程序的可响应性。

关 键 词:HTTP  HTTP协议  服务器  WinSock

Analysis of server program based on HTTP protocol
Affiliation:ZHU Rui(Department of Electronic Science,Xi’an Air Forces Engineering University,Xi’an 710043,China)
Abstract:The overwhelming majority of Web developments are built based on Web application of HTTP protocol.To analyze the server program based on the HTTP protocol and the process of interaction between the browser and server,a simple HTTP-based server program is taken as an example to describe how to use the theories of multi-threading and asynchronous operation,and the core section of HTTP-based server program is gradually resolved with Winsock programming.This method can achieve the purpose to avoid blocking the calling thread,and improve the responsiveness of a server program.
Keywords:HTTP  HTTP protocol  server  WinSock
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号