文件名称:ClientaSvr
- 所属分类:
- ICQ/即时通讯
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 49kb
- 下载次数:
- 0次
- 提 供 者:
- 付*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
分别编写客户端与服务端程序,实现网络聊天室功能。
实现方法:服务器首先建立一个ListenSocket。当客户端连接时,新建一个和客户端通话的ClientSocket,并且一直保持到该客户端中断连接,而ListenSocket继续等待别的客户端来连接。
客户端也首先建立一个Socket,并连接到服务器,然后和服务器对应的ClientSocket保持通话直到结束。-Were prepared by the client and server programs, network chat function.
Method: server first establish a ListenSocket. When a client connection, and a new client calls ClientSocket, and maintained until the client disconnects, and ListenSocket continue to wait for another client to connect.
First, the client is also a Socket, and connect to the server and the server then calls the corresponding ClientSocket maintained until the end.
实现方法:服务器首先建立一个ListenSocket。当客户端连接时,新建一个和客户端通话的ClientSocket,并且一直保持到该客户端中断连接,而ListenSocket继续等待别的客户端来连接。
客户端也首先建立一个Socket,并连接到服务器,然后和服务器对应的ClientSocket保持通话直到结束。-Were prepared by the client and server programs, network chat function.
Method: server first establish a ListenSocket. When a client connection, and a new client calls ClientSocket, and maintained until the client disconnects, and ListenSocket continue to wait for another client to connect.
First, the client is also a Socket, and connect to the server and the server then calls the corresponding ClientSocket maintained until the end.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
客户端Client\ChatSocket.cpp
............\ChatSocket.h
............\ex126ClientDlg.h
............\LogonDlg.cpp
............\LogonDlg.h
............\ReadMe.txt
............\res\客户端Client.ico
............\...\客户端Client.rc2
............\resource.h
............\StdAfx.cpp
............\StdAfx.h
............\客户端Client.aps
............\客户端Client.clw
............\客户端Client.cpp
............\客户端Client.dsp
............\客户端Client.dsw
............\客户端Client.h
............\客户端Client.plg
............\客户端Client.rc
............\客户端ClientDlg.cpp
服务端Svr\ClientSocket.cpp
.........\ClientSocket.h
.........\ex126SvrDlg.h
.........\InitDlg.cpp
.........\InitDlg.h
.........\ListeningSocket.cpp
.........\ListeningSocket.h
.........\ReadMe.txt
.........\res\ex126Svr.ico
.........\...\ex126Svr.rc2
.........\resource.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\服务端Svr.aps
.........\服务端Svr.clw
.........\服务端Svr.cpp
.........\服务端Svr.dsp
.........\服务端Svr.dsw
.........\服务端Svr.h
.........\服务端Svr.plg
.........\服务端Svr.rc
.........\服务端SvrDlg.cpp
客户端Client\res
服务端Svr\res
客户端Client
服务端Svr
............\ChatSocket.h
............\ex126ClientDlg.h
............\LogonDlg.cpp
............\LogonDlg.h
............\ReadMe.txt
............\res\客户端Client.ico
............\...\客户端Client.rc2
............\resource.h
............\StdAfx.cpp
............\StdAfx.h
............\客户端Client.aps
............\客户端Client.clw
............\客户端Client.cpp
............\客户端Client.dsp
............\客户端Client.dsw
............\客户端Client.h
............\客户端Client.plg
............\客户端Client.rc
............\客户端ClientDlg.cpp
服务端Svr\ClientSocket.cpp
.........\ClientSocket.h
.........\ex126SvrDlg.h
.........\InitDlg.cpp
.........\InitDlg.h
.........\ListeningSocket.cpp
.........\ListeningSocket.h
.........\ReadMe.txt
.........\res\ex126Svr.ico
.........\...\ex126Svr.rc2
.........\resource.h
.........\StdAfx.cpp
.........\StdAfx.h
.........\服务端Svr.aps
.........\服务端Svr.clw
.........\服务端Svr.cpp
.........\服务端Svr.dsp
.........\服务端Svr.dsw
.........\服务端Svr.h
.........\服务端Svr.plg
.........\服务端Svr.rc
.........\服务端SvrDlg.cpp
客户端Client\res
服务端Svr\res
客户端Client
服务端Svr