摘要
Socket是网络通信应用程序对应的进程和网络协议之间的接口,适用于网络环境中的进程间通信。GoogleProtocol Buffers是一个用于序列化结构化数据的技术,用来持久化数据或者序列化成网络传输的数据。介绍了Linux平台下运用Protobuf实现TCP Socket通讯的原理,并通过一个C++编写的C/S程序检验基于Protobuf技术网络收发包的正确性。
Socket is an interface between the corresponding process of network communication application and network protocol.It is suitable for IPC in network environment.Google Protocol Buffers is a technology which is used to serialize structured data.It can perpetuate data or serialize it into network transmission data.Introduced using the application of protobuf to realize the principle of TCP Socket communication on Linux platform.A C/S program in C++ is programmed to verify the correctness of the network packets being transmitted or received based on protobuf technology.
出处
《电脑开发与应用》
2013年第4期1-5,共5页
Computer Development & Applications