- 1、本文档共43页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
lwip嵌入式的web服务器的外文翻译
2011 届毕业设计外文翻译
毕业设计题目 基于LWIP的嵌入式WEB服务器的设计与实现 外文翻译题目 Design and Implementtation of The LWIP TCP/IP Stack 专业 通信工程 班级 姓名 学号 指导教师 职称 评分
指标 翻译工作量 1.饱满 2.较饱满 3.一般 4.较差 译文质量 1.好 2.较好 3.一般 4.较差 指导教师意见
签名: 得分: 日期: 评阅教师意见
签名: 得分: 日期:
Design and Implementation of the lwIP
TCP/IP Stack
Swedish Institute of Computer Science
February 20, 2001
Adam Dunkels
adam@sics.se
1 API reference
1.1 Data types
There are two data types that are used for the lwIP API. These are
netbuf, the network buffer abstraction, and
netconn, the abstraction of a network connection.
Each data type is repressented as a pointer to a C struct. Knowledge of the internal structure ofthe struct should not be used in application programs. Instead, the API provides functions formodifying and extracting necessary fields.
1.1.1 Netbufs
Netbufs are buffers that are used for sending and receiving data. Internally, a netbuf is associatedwith a pbuf as presented in Section 6.1. Netbufs can, just as pbufs, accomodate both allocatedmemory and referenced memory. Allocated memory is RAM that is explicitly allocated for holdingnetwork data, whereas referenced memory might be either application managed RAM or externalROM. Referenced memory is useful for sending data that is not modiˉed, such as static web pagesor images.
The data in a netbuf can be fragmented into differenly sized blocks. This means that anapplication must be prepared to accept fragmented data. Internally, a netbuf has a pointer to one of the fragments in the netbuf. Two functions, netbuf_next() and netbuf_first() are used to manipulate this pointer.
Netbufs that have been received from the network also contain the IP address and port num
文档评论(0)