《局域网聊天软件设计与实现-学位论文.doc》

0 下载量 95 浏览量 更新于2023-11-21 收藏 423KB DOC 举报
The LAN chat software described in this document is an application program that runs on Linux system. It is written in C language. The program possesses several functions such as automatic refreshing of user list, message sending and receiving through TCP communication protocol, and storage of usernames and passwords in a MySQL database. This design aims to introduce the data parsing of user login and logout notifications, as well as chat messages sending and receiving. It also explains TCP network programming, including the creation of Client and Server using TCP and implementing data transmission. Finally, it provides a detailed explanation of the specific implementation methods and the design and implementation process of this program, as well as a program analysis. Keywords: Linux, TCP, Socket, MySQL database, C. Beijing University of Posts and Telecommunications Graduation Design ii The Design and Implementation of the LAN Chat Software Abstract The LAN chat software is an application program run on Linux system. It is written in C language. This program has the following functions: automatic refreshing of user list, message sending and receiving through TCP communication protocol, and storage of usernames and passwords in a MySQL database. This design provides a simple LAN chat software suitable for internal enterprise and laboratory use. It does not involve data exchange with the Internet, ensuring high-speed and secure communication. This paper focuses on the data parsing of user online and offline notifications, as well as chat message sending and receiving. It also explains TCP network programming, discussing the creation of Client and Server using TCP and the implementation of data transmission. Finally, it presents the specific implementation methods, design and implementation process, and program analysis of this software. Keywords: Linux, TCP, Socket, MySQL database, C.