资 源 简 介
信使小精灵,是一个简易的聊天工具。主要是演示了网络编程的主要步骤。本程序使用封装好的函数库,使得应用层不需要考虑网络消息是如何被接受和发送的,也不需要考虑数据粘包和丢包的刺手问题,你只要调用相应的函数就可以了。函数库为你做好了这些工作。你只需要定义自己的协议头和消息结构体,定义好网络消息的回调函数就可以了。-Messenger elf is a simple chat tool. Mainly to demonstrate the major steps in network programming. This procedure using the package a good library, making the application layer does not need to consider how the network news is accepted and sent, nor need to consider the data packet and packet loss sticky hands of the Spurs, you simply call the corresponding function can be a . Function library for you to do a good job in those efforts. You only need to define your own protocol header and message structure, the definition of good network news can be a callback function.