我这个程序是实现多个客户端向服务器传数据,以前不能实现同时传送的问题,为了满足我把服务器程序做了修改,但是是在别人以前的程序上修改的,以前用的是Csocket,现在要实现多线程,套接字采用了SOCKET,但客户端还是采用Csocket,这样是不是不行啊,服务器和客户端是不是要对应啊?
解决方案 »
- Dialog添加最大化,最小化按钮
- 关于CAsyncSocket和CSocket类的问题
- 怎么实现非模态的子对话框和父对话框 谁被激活 谁在前面。。~~下面代码无效。。
- 求教各位专家:在VC中怎么样自动关闭客户端机器访问网络共享的能力(包括9x和2000)?
- 如何正常的退出线程?
- 用Socket连接http proxy,但当将buffer delete时报了个怪异的未捕捉异常。
- 求将整数转换为点分格式字符串的方法(即IP地址格式)
- COM初学一问 (about 聚合)
- 新人求前辈教如何在eclipse中重新装安卓虚拟机
- 关于显示卸载DLL的问题
- char* 转 dword的问题
- 支持socet和不支持socket有什么区别
Connection reset by peer.
A existing connection was forcibly closed by the remote host. This normally results if the peer application on the remote host is suddenly stopped, the host is rebooted, or the remote host used a "hard close" (see setsockopt for more information on the SO_LINGER option on the remote socket.) This error may also result if a connection was broken due to "keep-alive" activity detecting a failure while one or more operations are in progress. Operations that were in progress fail with WSAENETRESET. Subsequent operations fail with WSAECONNRESET.