摘要
本文中所讨论的问题只是某一项目中的通信部分。这里主要介绍了两个方而的问题:socket 编程,包括客户端Wiudow socket 编程和服务器端 uClinux socket 编程,给出了其通信建立过程和编程中主要的调用函数:socket编程的协议定义。根据其通信过程,得出客户端和服务器端的数据报文形式,分别定义之,并按照其报文中的不同内容,定义了一个数据规范。按照本文中所定义的编程方式及协议,就能保证很好的通讯。
The problem discusses in the paper is just a part of an item.There introduces two parts: Socket program,which includes window socket program in client and uClinux socket program in server.It gives process of communication found and the main functions in program; Defines the communication protocols of socket program.Based on the communication process,it gets the data message form of client and server,then defines them.Also,bases the different contents in the message,gives a data criterion.According to the program and protocols,we can assure a good communication.