| 看了袁渊先生在VC知识库《在线杂志》第14期发表的文章《基于TCP/IP的局域网多用户通信》,感觉受益颇多,但也觉得里面有一些不太完善的地方,具体来说主要有: 1、两个服务器单独运行,且主线程均阻塞,用户界面死锁,不便于控制; 2、聊天服务器线程和互斥量的使用可能导致死锁; 3、不能实现文件传送(文件传送可不能由服务器转发,否则非把它累趴下不可^-^); 4、不能由用户进行网络设置,所以在不同的网络使用必须修改源程序等等; 我在此基础上重新设计编写了一个系统 -read YUAN Yuan in VC knowledge base "online magazine" 14 published an article, "based on TCP / IP LAN multi-user communication", I feel a lot of benefit, but also think that there are some less than perfect, specifically are : 1, 2 server running, and the main threads are blocked, the user interface Deadlock, facilitate control; 2, chat server threads and contradict the use of volume may lead to deadlock; 3, achieve file transfer (FTP can be transmitted by the server, otherwise he will not get on the ground tired ^ - ^) ; 4, and not by users for network configuration, the different networks must be revised source, etc.; I would like to re-design on the basis of the preparation of a system 下载 |