您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Design and Implementation of the lwIP(Lwip協定的設計與實現原版)
  所属分类: Web开发
  开发工具:
  文件大小: 283kb
  下载次数: 0
  上传时间: 2010-12-31
  提 供 者: beisik******
 详细说明: 目錄 1 Introduction 1 Introduction ……………………………………………………………………………………………………………………………………………………………………………………....1 1 1 Introduction 1 Introduction ……………………………………………………………………………………………………………………………………………………………………………………....11 2 Protocol layering 2 Protocol layering …………………………………………………………………………………………………………………………………………………………………………....1 1 2 Protocol layering 2 Protocol layering …………………………………………………………………………………………………………………………………………………………………………....11 3 Overview 3 Overview …………………………………………………………………………………………………………………………………………… ……………………………………………......2 2 3 Overview 3 Overview …………………………………………………………………………………………………………………………………………………………………………………………......22 4 Process model 4 Process model ………………………………………………………………………………………………………………………………………………………………………………......2 2 4 Process model 4 Process model ………………………………………………………………………………………………………………………………………………………………………………......22 5 The operating system emulation layer 5 The operating system emulation layer …………………………………………………………………………………………………………………………......3 3 5 The operating system emulation layer 5 The operating system emulation layer …………………………………………………………………………………………………………………………......33 6 Buffer and memory management……………………………6 Buffer and memory management……………………………..……………………………..…………………………….. .. …………......3 3 6 Buffer and memory management6 Buffer and memory management…………………………………………………………....………………………………………………………….. .. …………......33 6.1 Packet buffers -pbufs………………………………………………………………………………3 6.2 Memory management………………………………………………………………………………..5 7 Network interfaces……………………………………………7 Network interfaces…………………………………………….……………………………….……………………………… …………....5 5 7 Network interfaces7 Network interfaces…………………………………………………………………………………………..……………………………………………………………… …………....55 8 IP processing…………………………………………………8 IP processing………………………………………………….……………………………………….……………………………………… 7 7 8 IP processing8 IP processing……………………………………………………………………………………………………..……………………………………………………………………………… 77 8.1 Receiving packets…………………………………………………………………………………….7 8.2 Sending packets………………………………………………………………………………………7 8.3 Forwarding packets…………………………………………………………………………………..8 8.4 ICMP processing …………………………………………………………………………………….8 9 UDP processing………………………………………………………………………………9 UDP processing……………………………………………………………………………….. .. …………......8 9 UDP processing9 UDP processing……………………………………………………………………………………………………………………………………………………………….. .. …………...... 10 TCP processing……………………………………10 TCP processing………………………………………………………………………………………………………………………… …………......9 10 TCP processing10 TCP processing……………………………………………………………………………………………………………………………………………………………… …………...... 10.1 Overview……………………………………………………………………………………………9 10.2 Data structures……………………………………………………………………………………..10 10.3 Sequence number calculations…………………………………………………………………….12 10.4 Queuing and transmitting data…………………………………………………………………….12 10.4.1 Silly window avoidance…………………………………………………………………………13 10.5 Receiving segments………………………………………………………………………………..13 10.5.1 Demultiplexing…………………………………………………………………………………..13 10.5.2 Receiving data…………………………………………………………………………………...14 10.6 Accepting new connections ……………………………………………………………………….14 10.7 Fast retransmit……………………………………………………………………………………..14 10.8 Timers……………………………………………………………………………………………..14 10.9 Round-trip time estimation………………………………………………………………………..15 10.10Congestion control………………………………………………………………………………..15 11 Interfacing the stack 11 Interfacing the stack ………………………………………………………………………………………………………………………………………………………………15 15 11 Interfacing the stack 11 Interfacing the stack ………………………………………………………………………………………………………………………………………………………………1515 12 Application Program Interface…………………………………………………12 Application Program Interface………………………………………………………………………. . …………....16 1 12 Application Program Interface12 Application Program Interface…………………………………………………………………………………………………………………………. . …………....161 12.1 Basic concepts……………………………………………………………………………………..16 12.2 Implementation of the API……………………………………………………………………….. 17 13 Statistical code analysis 13 Statistical code analysis …………………………………………………………………………………………………………………………………………………………17 17 113 Statistical code analysis 3 Statistical code analysis …………………………………………………………………………………………………………………………………………………………1717 13.1 Lines of code………………………………………………………………………………………18 13.2 Object code size…………………………………………………………………………………...19 14 Performance analysis………………………………………………………………………14 Performance analysis……………………………………………………………………… …………......20 20 14 Performance analysis14 Performance analysis……………………………………………………………………………………………………………………………………………… …………......2020 15 API reference………………………15 API reference………………………………………………………………………………………………………………………………………. . …………......21 21 15 API reference15 API reference………………………………………………………………………………………………………………………………………………………………. . …………......2121 15.1 Data types………………………………………………………………………………………….21 15.1.1 Netbufs…………………………………………………………………………………………..21 15.2 Bu(R)er functions ……………………………………………………………………………………………………………………………………………………………………...21 …………………………………………………………………………………………………………………………………………………………………….. 15.2.1 netbuf new()……………………………………………………………………………………..21 15.2.2 netbuf delete()…………………………………………………………………………………...21 15.2.3 netbuf alloc()…………………………………………………………………………………….22 15.2.4 netbuf free()……………………………………………………………………………………..22 15.2.5 netbuf ref()………………………………………………………………………………………22 15.2.6 netbuf len()……………………………………………………………………………………... 23 15.2.7 netbuf data()……………………………………………………………………………………. 23 15.2.8 netbuf next()……………………………………………………………………………………. 23 15.2.9 netbuf ˉrst()……………………………………………………………………………………..24 15.2.10 netbuf copy()…………………………………………………………………………………...24 15.2.11 netbuf chain()…………………………………………………………………………………..24 15.2.12 netbuf fromaddr()………………………………………………………………………………24 15.2.13 netbuf fromport()……………………………………………………………………………… 25 16 Network connection functions 16 Network connection functions …………………………………………………………………………………………………………………………………………..25 25 16 Network connection functions 16 Network connection functions …………………………………………………………………………………………………………………………………………..2525 16.0.14 netconn new()…………………………………………………………………………………..25 16.0.15 netconn delete()………………………………………………………………………………...25 16.0.16 netconn type()…………………………………………………………………………………..25 16.0.17 netconn peer()…………………………………………………………………………………. 25 16.0.18 netconn addr()………………………………………………………………………………… 26 16.0.19 netconn bind()………………………………………………………………………………… 26 16.0.20 netconn connect(……………………………………………………………………………….26 16.0.21 netconn listen()…………………………………………………………………………………26 16.0.22 netconn accept()………………………………………………………………………………..26 16.0.23 netconn recv()………………………………………………………………………………….27 16.0.24 netconn write()…………………………………………………………………………………28 16.0.25 netconn send()………………………………………………………………………………….29 16.0.26 netconn close()…………………………………………………………………………………30 17 BSD socket library 17 BSD socket library ………………………………………………………………………………………………………………………………………………………………......30 30 17 BSD socket library 17 BSD socket library ………………………………………………………………………………………………………………………………………………………………......3030 17.1 The representation of a socket…………………………………………………………………….30 17.2 Allocating a socket ………………………………………………………………………………..30 17.2.1 The socket() call…………………………………………………………………………………30 17.3 Connection setup…………………………………………………………………………………..31 17.3.1 The bind() call…………………………………………………………………………………...31 17.3.2 The connect() call………………………………………………………………………………. 31 17.3.3 The listen() call………………………………………………………………………………….32 17.3.4 The accept() call ……………………………………………………………………………….. 32 17.4 Sending and receiving data………………………………………………………………………..33 17.4.1 The send() call ………………………………………………………………………………….33 17.4.2 The sendto() and sendmsg() calls ………………………………………………………………34 17.4.3 The write() call…………………………………………………………………………………. 34 17.4.4 The recv() and read() calls………………………………………………………………………35 17.4.5 The recvfrom() and recvmsg() calls…………………………………………………………….36 18 Code examples 18 Code examples …………………………………………………………………………………………………………………………………………………………………………..36 3 18 Code examples 18 Code examples …………………………………………………………………………………………………………………………………………………………………………..363 18.1 Using the API …………………………………………………………………………………….36 18.2 Directly interfacing the stack…………………………………………………………………….. 39 Bibliography Bibliography ……………………………………………………………………………………………………………………………………………………………………………………....41 41 Bibliography Bibliography ……………………………………………………………………………………………………………………………………………………………………………………....4141 ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: lwIP
 输入关键字,在本站1000多万海量源码库中尽情搜索: