WSAGetLastError() 返回10054 ?
我用connect连接服务器成功,然后调用send给服务器发送数据,然后用recv接收服务器返回的数据,可是我用WSAGetLastError()却返回10054的错误,请问这是为什么?怎么解决? 问题点数:20、回复次数:4Top
1 楼gao_ming77(小明)回复于 2006-06-01 16:40:24 得分 5
呵呵,可能你发送的数据导致server挂了,连接断了。Top
2 楼blueice718(冰蓝)回复于 2006-06-01 16:42:32 得分 0
晕倒,不是吧?我只发了几个字符串而已~~~
汗ing~~~Top
3 楼revivalyan(不吃年糕)回复于 2006-06-01 16:45:46 得分 10
WSAECONNRESET
(10054)
Connection reset by peer.
An 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 uses 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.
server斷了Top
4 楼DeadWolf(三角小眼睛又邪又媚又笨又呆又奸又诈又色)回复于 2006-06-01 16:52:13 得分 5
你发送的东西可能有问题Top




