摘要
为了实现Linux与Windows跨平台通信,及时共享信息,构建了一个适用于跨平台的网络聊天室通信程序。先搭建跨平台通信环境,然后使用Socket套接字网络编程接口实现通信。整个系统采用客户机/服务器(C/S)模型,Windows客户端采用MFC框架编写,Linux服务器和客户端均采用C语言实现。通过测试,Linux和Windows的客户端可以成功连接到服务器,从而实现跨平台网络聊天功能。
In order to achieve the cross-platform communication of Linux and Windows, and make information sharing timely, the article build a communication program of internet chatroom for cross-platform. First, it build environment of cross-platform commu-nication , and then use network programming interface of socket. The whole system adopts a Client/Server(C/S) model, using MFC framework to write Windows client, Linux, including server and client, use C language to realize. It is tested that client of Linux and Windows can successfully connect to the server. Then it can realize the function of the cross-platform internet chatroom.
出处
《软件导刊》
2015年第6期94-96,共3页
Software Guide