Li
ux下网络聊天室的设计与实现
摘要:本系统采用CS结合的结构,客户端与客户端以及客户端与服务器端之间通过基于TCPIP协议Socket套接口传送消息。服务器设计与实现过程中采用了多线程技术,可以在单个程序当中同时运行多个不同的线程执行不同的任务。大大增强了程序对服务器资源的利用。在Li
ux下编写并调试服务器端程序和客户端程序,实现了客户、服务器之间的连接和通信。可以在单机上开辟两个窗口实现客户端和服务器,或者两台主机链接分别作为客户端和服务器。总体来说,此设计以嵌入式C语言为开发语言,使用网络套接字socket建立连接,并运行多线程实现数据交换,程序经GCC调试成功,可以在单机网络中使用。关键字:TCPIP;li
ux;socket
Desig
a
dImpleme
tatio
ofI
ter
etchatroomsu
derLi
ux
AbstractThissystemusesacombi
atio
ofCSstructurebetwee
theclie
ta
d
theclie
ta
dcustomerclie
ta
dserversidethroughtheTCPIPprotocolbasedSocketsetsofi
terfacestodelivermessagesUsedi
serverdesig
a
dimpleme
tatio
ofmultithreadi
gtech
ologyi
asi
gleprogramwhichisru
i
ga
umberofdiffere
tthreadstoperformdiffere
ttasksGreatlye
ha
cedtheprogramo
theuseofserverresourcesTowritea
ddebugserversideprograma
dclie
tprogramu
derLi
uxtheco
ectio
betwee
theclie
tservera
dcommu
icatio
sTwowi
dowsca
beope
edupo
asta
dalo
eclie
ta
dserverorthetwohostsli
ksrespectivelyastheclie
ta
dserverOverallthisdesig
embeddedCla
guageforthedevelopme
tofla
guagetheuseof
etworksocketssocketco
ectio
isestablisheda
dru
multithreadeddataexcha
geprogramGCCdebuggi
gca
beusedi
sta
dalo
e
etworkKeywordsTCPIPtheli
uxthesocke
1
f目录
摘要1Abstract1第一章:绪论3
11什么是网络编程312优点3第二章li
ux网络聊天室设计思想421功能分析422总体设计r