作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (18): 92-94. doi: 10.3969/j.issn.1000-3428.2006.18.033

• 网络与通信 • 上一篇    下一篇

基于EWS的HTTP引擎设计

张文波1,2,赵 海1,苏威积1,徐 野1,赵 明1   

  1. (1. 东北大学信息科学与工程学院,沈阳 110004;2. 沈阳理工大学信息科学与工程学院,沈阳 110168)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-09-20 发布日期:2006-09-20

Design Method for HTTP Engine Based on EWS

ZHANG Wenbo1,2, ZHAO Hai1 , SU Weiji1, XU Ye1, ZHAO Ming1

  

  1. (1. School of Information Science and Engineering, Northeastern University, Shenyang 110004; 2. School of Information Science and Engineering, Shenyang University of Science and Technology, Shenyang 110168)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-09-20 Published:2006-09-20

摘要: 为了提高嵌入式系统开发的效率,该文提出了在嵌入式Web服务器中利用有限状态机来实现HTTP引擎的方法。根据嵌入式Web服务器对HTTP请求响应的过程,抽象出9个离散的状态,并将其转化为有限状态机的状态。用状态机的状态表示服务器完成HTTP连接处的各个状态,状态的变迁用状态表形式表示。通过有限状态机响应客户端的连接,使服务器的任务变得有效。实验表明,通过该方法实现的HTTP引擎,改进了服务的响应时间。

关键词: 嵌入式Web服务器, HTTP 引擎, 有限状态机, 嵌入式系统

Abstract: In order to increase the efficiency of embedded system development, this paper presents a method of designing HTTP engine in embedded Web server . In terms of the process of reply to HTTP request, it abstracts nine discrete states. These state is regarded as the states of FSM. These states is used to show the states during completing HTTP connection. Furthermore the state transition can be shown in the state table. By replying to the client connection using FSM, the tasks in the server becomes more effective. The final experiment shows that once the HTTP engine is realized in the described method, the reply time to service is reduced evidently.

Key words: Embedded Web server (EWS), HTTP engine, Finite state machine, Embedded system

中图分类号: