文件名称:MyChat201408
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2014-08-25
- 文件大小:
- 124kb
- 下载次数:
- 0次
- 提 供 者:
- 胡**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
该程序可以成功的实现聊天室聊天——若干人(一个服务器和数个客户端)的群聊天,
并可以实现客户端对服务器的上传小型文件。界面友好,操作简便。
该程序在上传大文件时,会出现接受方只能接受到一部分文件的问题,
分析原因如下,非阻塞方式在传文件时不能很好的实现发送端和接受端的同步,
即有可能发送端不停发送而接受方来不及接受,或接受方不停接受可发送方没有发送。
由于非阻塞方式的程序不会一直停留在send和recv函数上,我们只能通过它们的返回值判断发送和
接受的状态。-The program can be successfully achieved chat rooms- some people (a server and several clients) group chat,
And can achieve the client to the server to upload small files. User-friendly, easy to operate.
The program upload large files, there will be the recipient receives only part of the problem files,
The following analysis of the reasons, non-blocking mode when the file transfer is not well implemented synchronize the sending end and receiving end,
That may stop sending the sender and the recipient a chance to accept or recipient may stop accepting the sender did not send.
Because the program does not always stay nonblocking mode on the send and recv function, we can only judge by their sending and return values
Accept state.
并可以实现客户端对服务器的上传小型文件。界面友好,操作简便。
该程序在上传大文件时,会出现接受方只能接受到一部分文件的问题,
分析原因如下,非阻塞方式在传文件时不能很好的实现发送端和接受端的同步,
即有可能发送端不停发送而接受方来不及接受,或接受方不停接受可发送方没有发送。
由于非阻塞方式的程序不会一直停留在send和recv函数上,我们只能通过它们的返回值判断发送和
接受的状态。-The program can be successfully achieved chat rooms- some people (a server and several clients) group chat,
And can achieve the client to the server to upload small files. User-friendly, easy to operate.
The program upload large files, there will be the recipient receives only part of the problem files,
The following analysis of the reasons, non-blocking mode when the file transfer is not well implemented synchronize the sending end and receiving end,
That may stop sending the sender and the recipient a chance to accept or recipient may stop accepting the sender did not send.
Because the program does not always stay nonblocking mode on the send and recv function, we can only judge by their sending and return values
Accept state.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MyChat可实现聊天室和传小文件\a.bmp
............................\Client.cpp
............................\Client.h
............................\MyChat.aps
............................\MyChat.clw
............................\MyChat.cpp
............................\MyChat.dsp
............................\MyChat.dsw
............................\MyChat.h
............................\MyChat.ncb
............................\MyChat.plg
............................\MyChat.rc
............................\MyChatDlg.h
............................\ReadMe.txt
............................\resource.h
............................\Server.cpp
............................\Server.h
............................\StdAfx.cpp
............................\StdAfx.h
............................\代理.txt
............................\res\MyChat.ico
............................\...\MyChat.rc2
............................\res
............................\Debug\MyChat.exe
............................\Debug
............................\MyChatDlg.cpp
............................\MyChat.opt
MyChat可实现聊天室和传小文件