文件名称:InstantCommunicationSystem
- 所属分类:
- ICQ/即时通讯
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 2.99mb
- 下载次数:
- 0次
- 提 供 者:
- 一*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该通信系统主要实现过程为: 开一个线程来监听客服的连接, 一旦有连接就建立一个线程, 然后把获得的客户端socket 保存到全局变量当中, 然后不断地读取客户发过来的消息, 收到以后就广播到所有的客户端socket 当中。客户端只需输入服务器的IP 地址和用户登录的昵称, 连接上就可以通信了, 客户端建立了一个线程专门来接受服务器端发送过来的消息, 然后判断是聊天信息还是用户列表信息, 然后分发。-The communication system as the main implementation process: open a thread to monitor customer connections, if there is a thread connection, and then get the client socket to the global variables were saved, and then continue to read the customer sent me a message, to close to a future of broadcasting to all clients which socket. Clients only need to enter the server' s IP address and user login nickname, the connection can communicate, the client set up a dedicated thread to accept the message sent from the server, and then determine a list of chat messages, or user information, and then distribute .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Instant Communication System\即时通讯系统070420113—张海洲.doc
............................\网络编程070420113张海洲\chat\chat.aps
............................\.......................\....\chat.clw
............................\.......................\....\chat.cpp
............................\.......................\....\chat.dsp
............................\.......................\....\chat.dsw
............................\.......................\....\chat.h
............................\.......................\....\chat.ncb
............................\.......................\....\chat.opt
............................\.......................\....\chat.plg
............................\.......................\....\chat.rc
............................\.......................\....\chatDlg.cpp
............................\.......................\....\chatDlg.h
............................\.......................\....\Debug\chat.exe
............................\.......................\....\.....\chat.obj
............................\.......................\....\.....\chat.pdb
............................\.......................\....\.....\chat.res
............................\.......................\....\.....\chatDlg.obj
............................\.......................\....\.....\login.obj
............................\.......................\....\.....\StdAfx.obj
............................\.......................\....\.....\vc60.pdb
............................\.......................\....\login.cpp
............................\.......................\....\login.h
............................\.......................\....\ReadMe.txt
............................\.......................\....\res\1.bmp
............................\.......................\....\...\bitmap5.bmp
............................\.......................\....\...\chat.ico
............................\.......................\....\...\chat.rc2
............................\.......................\....\...\icon1.ico
............................\.......................\....\resource.h
............................\.......................\....\StdAfx.cpp
............................\.......................\....\StdAfx.h
............................\.......................\....server\chatserver.aps
............................\.......................\..........\chatserver.clw
............................\.......................\..........\chatserver.cpp
............................\.......................\..........\chatserver.dsp
............................\.......................\..........\chatserver.dsw
............................\.......................\..........\chatserver.h
............................\.......................\..........\chatserver.ncb
............................\.......................\..........\chatserver.opt
............................\.......................\..........\chatserver.plg
............................\.......................\..........\chatserver.rc
............................\.......................\..........\chatserverDlg.cpp
............................\.......................\..........\chatserverDlg.h
............................\.......................\..........\clogin.cpp
............................\.......................\..........\clogin.h
............................\.......................\..........\Debug\chatserver.exe
............................\.......................\..........\.....\chatserver.obj
............................\.......................\..........\.....\chatserver.pdb
............................\.......................\..........\.....\chatserver.res
............................\.......................\..........\.....\chatserverDlg.obj
............................\.......................\..........\.....\clogin.obj
............................\.......................\..........\.....\StdAfx.obj
............................\.......................\..........\.....\vc60.pdb
............................\.......................\..........\ReadMe.txt
............................\....
............................\网络编程070420113张海洲\chat\chat.aps
............................\.......................\....\chat.clw
............................\.......................\....\chat.cpp
............................\.......................\....\chat.dsp
............................\.......................\....\chat.dsw
............................\.......................\....\chat.h
............................\.......................\....\chat.ncb
............................\.......................\....\chat.opt
............................\.......................\....\chat.plg
............................\.......................\....\chat.rc
............................\.......................\....\chatDlg.cpp
............................\.......................\....\chatDlg.h
............................\.......................\....\Debug\chat.exe
............................\.......................\....\.....\chat.obj
............................\.......................\....\.....\chat.pdb
............................\.......................\....\.....\chat.res
............................\.......................\....\.....\chatDlg.obj
............................\.......................\....\.....\login.obj
............................\.......................\....\.....\StdAfx.obj
............................\.......................\....\.....\vc60.pdb
............................\.......................\....\login.cpp
............................\.......................\....\login.h
............................\.......................\....\ReadMe.txt
............................\.......................\....\res\1.bmp
............................\.......................\....\...\bitmap5.bmp
............................\.......................\....\...\chat.ico
............................\.......................\....\...\chat.rc2
............................\.......................\....\...\icon1.ico
............................\.......................\....\resource.h
............................\.......................\....\StdAfx.cpp
............................\.......................\....\StdAfx.h
............................\.......................\....server\chatserver.aps
............................\.......................\..........\chatserver.clw
............................\.......................\..........\chatserver.cpp
............................\.......................\..........\chatserver.dsp
............................\.......................\..........\chatserver.dsw
............................\.......................\..........\chatserver.h
............................\.......................\..........\chatserver.ncb
............................\.......................\..........\chatserver.opt
............................\.......................\..........\chatserver.plg
............................\.......................\..........\chatserver.rc
............................\.......................\..........\chatserverDlg.cpp
............................\.......................\..........\chatserverDlg.h
............................\.......................\..........\clogin.cpp
............................\.......................\..........\clogin.h
............................\.......................\..........\Debug\chatserver.exe
............................\.......................\..........\.....\chatserver.obj
............................\.......................\..........\.....\chatserver.pdb
............................\.......................\..........\.....\chatserver.res
............................\.......................\..........\.....\chatserverDlg.obj
............................\.......................\..........\.....\clogin.obj
............................\.......................\..........\.....\StdAfx.obj
............................\.......................\..........\.....\vc60.pdb
............................\.......................\..........\ReadMe.txt
............................\....