摘要
uIP作为一种广泛使用的轻量级嵌入式TCP/IP协议栈,其UDP协议的实现还不够完善,目前最新的1.0版本中仅实现了UDP客户端,尚没有实现UDP服务端。为此,对其进行了以下三方面的改进:UDP服务端口的初始化;接收到UDP客户端数据包后的端口号判断及匹配;UDP服务端发送报文后目的端口的释放。经过以上改进后,实验证明,uIP1.0中的UDP实现了服务端的功能。
uIP is a kind of widely used lightweight embedded TCP/IP protocol stack,but the implementation of UDP protocol of uIP is not perfect.In uIP's newest version uIP 1.0,only UDP client has been implemented,and UDP server hasn't been complemented so far.In this paper,three points of improvement on uIP 1.0 are given.Firstly,initialize UDP server port.Secondly,decise and match the port of UDP data packet from UDP client.At last,release the destination port of UDP server after data packet has been sent.Laboratory result showed that uIP 1.0 can run as UDP server rightly after it is improved.
出处
《微型机与应用》
2010年第21期52-54,共3页
Microcomputer & Its Applications
基金
南京工程学院科研基金项目(KXJ08070)