解决方案 »
- 对话框的的贴图问题
- 关于ReName和MoveFile的问题
- GDI+ DrawString 省落号
- 请问msg结构中的wparam中在on—ctlcolor中包含有发送者的ID吗?
- MFC 和网页
- 如何在关闭文档时添加代码
- 关于加入控件的处理疑问
- 有人使用过Real Networks SDK吗?
- 如何用代码实现更改picture的Notify风格?
- 请问如何将as a shared DLL改为as a statically linked library?
- AfxMessageBox(TEXT("注意安全!")) 和AfxMessageBox("注意安全");
- 用类封装 Bitmap,BitBlt()显示不出来的问题~~~~~~~~~~~~~~~~~~~~
这可能是客户端过早关闭, 导致客户端的数据没发送完成, 具体的可以看msdn的 closesocket 后面的备注This is called a hard or abortive close, because the socket's virtual circuit is reset immediately, and any unsent data is lost. Any recv call on the remote side of the circuit will fail with WSAECONNRESET.
比如 CLient 最后一次发送内容 “ Hello ”
Server收到 显示 HelloClient 关闭
Server Recv方法不断收到 Hello 接收完一次 再次Recv又收到 Hello
出错返回-1, 也是true, 确定下到底返回什么